glut: Don't try to guess system headers.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 12 Feb 2009 13:52:16 +0000 (13:52 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 12 Feb 2009 13:54:54 +0000 (13:54 +0000)
Just include them, especially such basic header as stdlib.h

include/GL/glut.h

index 022378fb9d78d0a289e507266f55ad423f2244c2..c305b9ab99154cbe87fa30293c6118ad10c3ee51 100644 (file)
@@ -74,23 +74,9 @@ extern "C" {
 #  define __cdecl
 #  define GLUT_DEFINED___CDECL
 # endif
-# ifndef _CRTIMP
-#  ifdef _NTSDK
-    /* Definition compatible with NT SDK */
-#   define _CRTIMP
-#  else
-    /* Current definition */
-#   ifdef _DLL
-#    define _CRTIMP __declspec(dllimport)
-#   else
-#    define _CRTIMP
-#   endif
-#  endif
-#  define GLUT_DEFINED__CRTIMP
-# endif
-# ifndef GLUT_BUILDING_LIB
-extern _CRTIMP void __cdecl exit(int);
-# endif
+#if defined(_WIN32) && !defined(GLUT_DISABLE_ATEXIT_HACK)
+#include <stdlib.h>
+#endif
 
 /* GLUT callback calling convention for Win32. */
 # define GLUTCALLBACK __cdecl