calling convention, leading to compilation errors.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@826
7f0cb862-5218-0410-a997-
914c9d46530a
+2009-06-11 Sven Panne <sven.panne@aedion.de>
+
+ * include/GL/freeglut_std.h: Disable the ATEXIT_HACK for Watcom, their
+ "exit" function has a different calling convention, leading to
+ compilation errors.
+
2009-05-24 Sven Panne <sven.panne@aedion.de>
* freeglut_static_vs2008.vcproj,freeglut_vs2008.vcproj,
/* to get the prototype for exit() */
#include <stdlib.h>
-#if defined(_WIN32) && !defined(GLUT_DISABLE_ATEXIT_HACK)
+#if defined(_WIN32) && !defined(GLUT_DISABLE_ATEXIT_HACK) && !defined(__WATCOMC__)
FGAPI void FGAPIENTRY __glutInitWithExit(int *argcp, char **argv, void (__cdecl *exitfunc)(int));
FGAPI int FGAPIENTRY __glutCreateWindowWithExit(const char *title, void (__cdecl *exitfunc)(int));
FGAPI int FGAPIENTRY __glutCreateMenuWithExit(void (* func)(int), void (__cdecl *exitfunc)(int));