projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.16.tar.gz
[xscreensaver]
/
OSX
/
xscreensaver_Prefix.pch
diff --git
a/OSX/xscreensaver_Prefix.pch
b/OSX/xscreensaver_Prefix.pch
index 9ebe330d46895d16ad045c8d5b89eb65dc0658ff..07c8c89b7e19e9f4b2801ee22cfade57d46dd7fc 100644
(file)
--- a/
OSX/xscreensaver_Prefix.pch
+++ b/
OSX/xscreensaver_Prefix.pch
@@
-6,10
+6,28
@@
#include <string.h>
#include <sys/time.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 __OBJC__
- #import <Cocoa/Cocoa.h>
+# ifdef USE_IPHONE
+# import <Foundation/Foundation.h>
+# import <UIKit/UIKit.h>
+# else
+# import <Cocoa/Cocoa.h>
+# endif
#endif
#include "jwxyz.h"
#endif
#include "jwxyz.h"
-#include <OpenGL/gl.h>
+# ifdef USE_IPHONE
+# include <OpenGLES/ES1/gl.h>
+# include <OpenGLES/ES1/glext.h>
+#else
+# include <OpenGL/gl.h>
+#endif