projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Using the -pedantic flag with gcc uncovered a series of warnings about
[freeglut]
/
src
/
fg_internal.h
diff --git
a/src/fg_internal.h
b/src/fg_internal.h
index
645c82f
..
6698865
100644
(file)
--- a/
src/fg_internal.h
+++ b/
src/fg_internal.h
@@
-45,6
+45,9
@@
#elif defined (__ANDROID__)
# define TARGET_HOST_ANDROID 1
#elif defined (__ANDROID__)
# define TARGET_HOST_ANDROID 1
+#elif defined (__QNXNTO__) || defined (__PLAYBOOK__)
+# define TARGET_HOST_BLACKBERRY 1
+
#elif defined(__posix__) || defined(__unix__) || defined(__linux__) || defined(__sun)
# define TARGET_HOST_POSIX_X11 1
#elif defined(__posix__) || defined(__unix__) || defined(__linux__) || defined(__sun)
# define TARGET_HOST_POSIX_X11 1
@@
-68,6
+71,14
@@
# define TARGET_HOST_MS_WINDOWS 0
#endif
# define TARGET_HOST_MS_WINDOWS 0
#endif
+#ifndef TARGET_HOST_ANDROID
+# define TARGET_HOST_ANDROID 0
+#endif
+
+#ifndef TARGET_HOST_BLACKBERRY
+# define TARGET_HOST_BLACKBERRY 0
+#endif
+
#ifndef TARGET_HOST_POSIX_X11
# define TARGET_HOST_POSIX_X11 0
#endif
#ifndef TARGET_HOST_POSIX_X11
# define TARGET_HOST_POSIX_X11 0
#endif
@@
-184,6
+195,9
@@
#if TARGET_HOST_ANDROID
#include "android/fg_internal_android.h"
#endif
#if TARGET_HOST_ANDROID
#include "android/fg_internal_android.h"
#endif
+#if TARGET_HOST_BLACKBERRY
+#include "blackberry/fg_internal_blackberry.h"
+#endif
/* -- GLOBAL TYPE DEFINITIONS ---------------------------------------------- */
/* -- GLOBAL TYPE DEFINITIONS ---------------------------------------------- */
@@
-372,7
+386,7
@@
struct tagSFG_Context
int DoubleBuffered; /* Treat the window as double-buffered */
int DoubleBuffered; /* Treat the window as double-buffered */
- /* When drawing geometry to vertex attribute buffers, user specifies
+ /* When drawing geometry to vertex attribute buffers, user specifies
* the attribute indices for vertices, normals and/or texture coords
* to freeglut. Those are stored here
*/
* the attribute indices for vertices, normals and/or texture coords
* to freeglut. Those are stored here
*/