#141 freeglut_ext.h included too late in GLUT.i

v2.0.1
closed-fixed
nobody
GLUT (25)
5
2006-05-14
2005-12-07
Marcelo Matus
No

A minor change is needed since the freeglut_ext.h
is included after is used, see bellow.

This seems to confuse the compiler gcc3.4.

Marcelo

diff -u GLUT.i~ GLUT.i
--- GLUT.i~ 2004-11-14 16:27:26.000000000 -0700
+++ GLUT.i 2005-12-06 21:23:51.000000000 -0700
@@ -1026,6 +1026,10 @@
#endif

#if API_VERSION >= 20 /* freeglut/openglut */
+%{
+#include <GL/freeglut_ext.h>
+%}
+
/*
* Process loop function, see freeglut_main.c
*/
@@ -1402,9 +1406,6 @@

/* Rest of the file is nonstandard extensions by
FreeGLUT/OpenGLUT */
#if API_VERSION >= 20
-%{
-#include <GL/freeglut_ext.h>
-%}
/*
* GLUT API Extension macro definitions -- behaviour
when the user clicks on an "x" to close a window
*/

Discussion

  • Logged In: YES
    user_id=34901

    Is now in CVS.

     
    • status: open --> closed-fixed