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.38.tar.gz
[xscreensaver]
/
hacks
/
screenhackI.h
diff --git
a/hacks/screenhackI.h
b/hacks/screenhackI.h
index 4f55c943890cea2815e7e5910d8648603d9396a2..3494684e4129b668f4ae8485e0f9e46b8ab46a8d 100644
(file)
--- a/
hacks/screenhackI.h
+++ b/
hacks/screenhackI.h
@@
-1,4
+1,4
@@
-/* xscreensaver, Copyright (c) 1992-201
4
Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 1992-201
6
Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
@@
-60,6
+60,7
@@
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
+#include <time.h>
#ifdef __hpux
/* Which of the ten billion standards does values.h belong to?
#ifdef __hpux
/* Which of the ten billion standards does values.h belong to?
@@
-67,14
+68,23
@@
# include <values.h>
#endif
# include <values.h>
#endif
-#ifdef HAVE_
COCOA
+#ifdef HAVE_
JWXYZ
# include "jwxyz.h"
# include "jwxyz.h"
-#else /*
!HAVE_COCOA --
real X11 */
+#else /* real X11 */
# include <X11/Xlib.h>
# include <X11/Xutil.h>
# include <X11/Xresource.h>
# include <X11/Xos.h>
# include <X11/Xlib.h>
# include <X11/Xutil.h>
# include <X11/Xresource.h>
# include <X11/Xos.h>
-#endif /* !HAVE_COCOA */
+#endif /* !HAVE_JWXYZ */
+
+#if defined(USE_IPHONE) || defined(HAVE_ANDROID)
+# define HAVE_MOBILE
+#endif
+
+#ifdef HAVE_ANDROID
+ /* So that hacks' debug output shows up in logcat... */
+# define fprintf(S, ...) Log(__VA_ARGS__)
+#endif
/* M_PI ought to have been defined in math.h, but... */
#ifndef M_PI
/* M_PI ought to have been defined in math.h, but... */
#ifndef M_PI