From 62f61e0957a93d5d6188e146cf5f2aeaf98e6161 Mon Sep 17 00:00:00 2001 From: "John F. Fay" Date: Tue, 20 Dec 2011 03:18:11 +0000 Subject: [PATCH] Fixing the "fgDeinitialize" call properly per e-mail from John Tsiombikas dated 12/19/11 at 7:07 AM git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@959 7f0cb862-5218-0410-a997-914c9d46530a --- src/freeglut_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freeglut_init.c b/src/freeglut_init.c index 44bb42f..8c254bc 100644 --- a/src/freeglut_init.c +++ b/src/freeglut_init.c @@ -393,7 +393,7 @@ static void fghInitialize( const char* displayName ) /* Avoid registering atexit callback on Win32 as it results in an access * violation due to calling into a module which has been unloaded. */ -#ifndef TARGET_HOST_MS_WINDOWS +#if ( TARGET_HOST_MS_WINDOWS == 0 ) atexit(fgDeinitialize); #endif -- 1.7.10.4