http://slackware.bholcomb.com/slackware/slackware-11.0/source/xap/xscreensaver/xscree...
[xscreensaver] / hacks / glx / glut_swidth.c
index 076858660b324fb8f7c5ab037fb36423428a26c2..c94927b026504437e8f8f26d9eb0ecd852a15e04 100644 (file)
@@ -8,8 +8,15 @@
 #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 <OpenGL/gl.h>
+# else
+#  include <GL/gl.h>
+#endif
+# undef APIENTRY
 # define APIENTRY /**/
 #endif