diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2005-02-16 19:52:35 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2011-07-11 20:03:33 +0100 |
commit | e0c8367ac0d02a18491cdf606247f7f152092537 (patch) | |
tree | 3b936e519f498b57b06e70281059cf79774200e8 | |
parent | 0c159b5debec5e6f757423780e3d088b28b42aa4 (diff) | |
download | glut-e0c8367ac0d02a18491cdf606247f7f152092537.tar.gz |
fix non-Win32 definition of GLUTAPIENTRY, remove some cruft
-rw-r--r-- | include/GL/glut.h | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/include/GL/glut.h b/include/GL/glut.h index 2e5be8a..23c740e 100644 --- a/include/GL/glut.h +++ b/include/GL/glut.h @@ -193,13 +193,11 @@ WGLAPI int GLAPIENTRY SetPixelFormat(HDC,int,const PIXELFORMATDESCRIPTOR *); #else /* _WIN32 not defined */ /* Define GLUTAPIENTRY and GLUTCALLBACK to nothing if we aren't on Win32. */ -# define GLUTAPIENTRY GLAPI +# define GLUTAPIENTRY GLAPIENTRY # define GLUTAPIENTRYV -# define GLUT_APIENTRY_DEFINED # define GLUTCALLBACK # define GLUTAPI extern -/* Prototype exit for the non-Win32 case (see above). */ -/*extern void exit(int); this screws up gcc -ansi -pedantic! */ + #endif @@ -747,26 +745,4 @@ GLUTAPI int GLUTAPIENTRY glutGameModeGet(GLenum mode); } #endif -#if 0 -#ifdef GLUT_APIENTRY_DEFINED -# undef GLUT_APIENTRY_DEFINED -# undef APIENTRY -#endif - -#ifdef GLUT_WINGDIAPI_DEFINED -# undef GLUT_WINGDIAPI_DEFINED -# undef WINGDIAPI -#endif - -#ifdef GLUT_DEFINED___CDECL -# undef GLUT_DEFINED___CDECL -# undef __cdecl -#endif - -#ifdef GLUT_DEFINED__CRTIMP -# undef GLUT_DEFINED__CRTIMP -# undef _CRTIMP -#endif -#endif - #endif /* __glut_h__ */ |