http://slackware.bholcomb.com/slackware/slackware-11.0/source/xap/xscreensaver/xscree...
[xscreensaver] / hacks / glx / glut_swidth.c
index fb389673c58de2b386ed128e0ec448ff749461d2..c94927b026504437e8f8f26d9eb0ecd852a15e04 100644 (file)
@@ -8,8 +8,14 @@
 #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