summaryrefslogtreecommitdiffstats
path: root/OSX/xscreensaver_Prefix.pch
diff options
context:
space:
mode:
authorSimon Rettberg2018-10-16 10:08:48 +0200
committerSimon Rettberg2018-10-16 10:08:48 +0200
commitd3a98cf6cbc3bd0b9efc570f58e8812c03931c18 (patch)
treecbddf8e50f35a9c6e878a5bfe3c6d625d99e12ba /OSX/xscreensaver_Prefix.pch
downloadxscreensaver-d3a98cf6cbc3bd0b9efc570f58e8812c03931c18.tar.gz
xscreensaver-d3a98cf6cbc3bd0b9efc570f58e8812c03931c18.tar.xz
xscreensaver-d3a98cf6cbc3bd0b9efc570f58e8812c03931c18.zip
Original 5.40
Diffstat (limited to 'OSX/xscreensaver_Prefix.pch')
-rw-r--r--OSX/xscreensaver_Prefix.pch33
1 files changed, 33 insertions, 0 deletions
diff --git a/OSX/xscreensaver_Prefix.pch b/OSX/xscreensaver_Prefix.pch
new file mode 100644
index 0000000..07c8c89
--- /dev/null
+++ b/OSX/xscreensaver_Prefix.pch
@@ -0,0 +1,33 @@
+/* Prefix header for all source files of the 'xscreensaver' project.
+ */
+
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <sys/time.h>
+
+#include <TargetConditionals.h>
+
+#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
+# undef USE_IPHONE
+# define USE_IPHONE
+# define HAVE_JWZGLES
+#endif
+
+#ifdef __OBJC__
+# ifdef USE_IPHONE
+# import <Foundation/Foundation.h>
+# import <UIKit/UIKit.h>
+# else
+# import <Cocoa/Cocoa.h>
+# endif
+#endif
+
+#include "jwxyz.h"
+
+# ifdef USE_IPHONE
+# include <OpenGLES/ES1/gl.h>
+# include <OpenGLES/ES1/glext.h>
+#else
+# include <OpenGL/gl.h>
+#endif