From http://www.jwz.org/xscreensaver/xscreensaver-5.35.tar.gz
[xscreensaver] / hacks / glx / glut_stroke.c
index b7a783d1a705fe53f9b46e9ce80b63c8214e9e4a..59850ea76c43c010d7aede3435716f1749799417 100644 (file)
@@ -8,8 +8,24 @@
 #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
+
+# ifdef HAVE_COCOA
+#  include "jwxyz.h"
+# elif defined(HAVE_ANDROID)
+#  include "jwxyz.h"
+#  include <GLES/gl.h>
+# else  /* real X11 */
+#  include <GL/gl.h>
+# endif
+
+# ifdef HAVE_JWZGLES
+#  include "jwzgles.h"
+# endif /* HAVE_JWZGLES */
+
 # undef APIENTRY
 # define APIENTRY /**/
 #endif