diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-02-12 13:52:16 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2011-07-11 20:05:25 +0100 |
commit | f24783e4a8b7f1efcf79475ab6800b07eb053640 (patch) | |
tree | f34cb8eb36b95ebd95499d14222f89c67cc167c4 | |
parent | 2bcf2009e4d2afd57ff75a2a3ee755f3131cb3da (diff) |
glut: Don't try to guess system headers.
Just include them, especially such basic header as stdlib.h
-rw-r--r-- | include/GL/glut.h | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/include/GL/glut.h b/include/GL/glut.h index 022378f..c305b9a 100644 --- a/include/GL/glut.h +++ b/include/GL/glut.h @@ -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 |