X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_ext.c;h=9c8da1458fc533f56a967f798edca7e04b083f40;hb=aaeb1b4e7b4444dbddb0e972f01b9bb7e7db8c4d;hp=5b2ca928b14cdd515232fb03afd2f34b2d0829ec;hpb=7c1f2d267626b937acdb59e18c0e22fabbc6d339;p=freeglut diff --git a/src/freeglut_ext.c b/src/freeglut_ext.c index 5b2ca92..9c8da14 100644 --- a/src/freeglut_ext.c +++ b/src/freeglut_ext.c @@ -29,7 +29,9 @@ #include "config.h" #endif -#include "../include/GL/freeglut.h" +#define GLX_GLXEXT_PROTOTYPES + +#include #include "freeglut_internal.h" @@ -177,7 +179,7 @@ static struct name_address_pair glut_functions[] = { "glutGetProcAddress", (void *) glutGetProcAddress }, { "glutMouseWheelFunc", (void *) glutMouseWheelFunc }, { NULL, NULL } -}; +}; void *FGAPIENTRY glutGetProcAddress( const char *procName ) @@ -185,8 +187,8 @@ void *FGAPIENTRY glutGetProcAddress( const char *procName ) /* Try GLUT functions first */ int i; for( i = 0; glut_functions[ i ].name; i++ ) - if( strcmp( glut_functions[ i ].name, procName ) == 0) - return glut_functions[ i ].address; + if( strcmp( glut_functions[ i ].name, procName ) == 0) + return glut_functions[ i ].address; /* Try core GL functions */ #if TARGET_HOST_WIN32