From http://www.jwz.org/xscreensaver/xscreensaver-5.16.tar.gz
[xscreensaver] / hacks / glx / glut_stroke.c
index 9cd46e0e69ea8f0606769e5a7f753b7e6475b8cf..455e3db0dd4da49a4957f646fd3fc34b67d66149 100644 (file)
@@ -8,8 +8,16 @@
 #if 0   /* for Mesa */
 # include "glutint.h"
 #else   /* for xscreensaver */
-# include "config.h"
-# include <GL/gl.h>
+# ifdef HAVE_CONFIG_H
+#  include "config.h"
+# endif
+# ifndef HAVE_COCOA
+#  include <GL/gl.h>
+# endif
+# ifdef HAVE_JWZGLES
+#  include "jwzgles.h"
+# endif /* HAVE_JWZGLES */
+# undef APIENTRY
 # define APIENTRY /**/
 #endif