projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added an option to enable gcc compiler warnings.
[freeglut]
/
src
/
freeglut_ext.c
diff --git
a/src/freeglut_ext.c
b/src/freeglut_ext.c
index
5b2ca92
..
2c98d4b
100644
(file)
--- a/
src/freeglut_ext.c
+++ b/
src/freeglut_ext.c
@@
-29,6
+29,8
@@
#include "config.h"
#endif
#include "config.h"
#endif
+#define GLX_GLXEXT_PROTOTYPES
+
#include "../include/GL/freeglut.h"
#include "freeglut_internal.h"
#include "../include/GL/freeglut.h"
#include "freeglut_internal.h"
@@
-185,8
+187,8
@@
void *FGAPIENTRY glutGetProcAddress( const char *procName )
/* Try GLUT functions first */
int i;
for( i = 0; glut_functions[ i ].name; i++ )
/* 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
/* Try core GL functions */
#if TARGET_HOST_WIN32