X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_window.c;h=03a3b255d81045ef38d81c864b20c39990b89804;hb=8fb7b342a32cb2336b5c3752c68714b47ac7c63e;hp=005074b3c6adcf0b40650f065d515d25944dee5b;hpb=fd77927b8883b81cc4a7bcb79f216e524043407d;p=freeglut diff --git a/src/freeglut_window.c b/src/freeglut_window.c index 005074b..03a3b25 100644 --- a/src/freeglut_window.c +++ b/src/freeglut_window.c @@ -25,6 +25,7 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#define FREEGLUT_BUILDING_LIB #include #include "freeglut_internal.h" @@ -1092,6 +1093,14 @@ int FGAPIENTRY glutCreateWindow( const char* title ) GL_FALSE, GL_FALSE )->ID; } +#ifdef _WIN32 +int FGAPIENTRY __glutCreateWindowWithExit( const char *title, void (__cdecl *exitfunc)(int) ) +{ + __glutExitFunc = exitfunc; + return glutCreateWindow( title ); +} +#endif + /* * This function creates a sub window. */