X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fglut_swidth.c;h=c94927b026504437e8f8f26d9eb0ecd852a15e04;hb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;hp=076858660b324fb8f7c5ab037fb36423428a26c2;hpb=ebc241816cc8e3eec7270a594bb1a607df32bcd6;p=xscreensaver diff --git a/hacks/glx/glut_swidth.c b/hacks/glx/glut_swidth.c index 07685866..c94927b0 100644 --- a/hacks/glx/glut_swidth.c +++ b/hacks/glx/glut_swidth.c @@ -8,8 +8,15 @@ #if 0 /* for Mesa */ # include "glutint.h" #else /* for xscreensaver */ -# include "config.h" -# include +# ifdef HAVE_CONFIG_H +# include "config.h" +# endif +# ifdef HAVE_COCOA +# include +# else +# include +#endif +# undef APIENTRY # define APIENTRY /**/ #endif