Moving the Windows-specific "glutInitWithExit" function to a Windows-specific file
[freeglut] / src / mswin / freeglut_init_mswin.c
index 9792632..568170e 100644 (file)
@@ -329,3 +329,14 @@ int XParseGeometry (
 \r
 \r
 \r
+/* -- PLATFORM-SPECIFIC INTERFACE FUNCTION -------------------------------------------------- */\r
+\r
+\r
+void (__cdecl *__glutExitFunc)( int return_value ) = NULL;\r
+\r
+void FGAPIENTRY __glutInitWithExit( int *pargc, char **argv, void (__cdecl *exit_function)(int) )\r
+{\r
+  __glutExitFunc = exit_function;\r
+  glutInit(pargc, argv);\r
+}\r
+\r