aboutsummaryrefslogtreecommitdiffstats
path: root/make/stub_includes
diff options
context:
space:
mode:
authorWade Walker <[email protected]>2014-03-05 16:10:56 -0600
committerWade Walker <[email protected]>2014-03-05 16:10:56 -0600
commit6b865b8650b62f448760cfbe50cc563f7ab85da9 (patch)
treec30b2fc243cafabaf698fbdce965f11733cf664c /make/stub_includes
parentddfd2364cd95603f059169b44666b20ba54069f2 (diff)
Remove alignment warning in gluegen preprocessing.
Turns off the warning about CL_ALIGNED not being defined for the current compiler, but only inside the gluegen preprocessor. If CL_ALIGNED isn't defined for the real C compiler on the platform, the warning will still show up during C compilation.
Diffstat (limited to 'make/stub_includes')
-rw-r--r--make/stub_includes/CL_orig/cl_platform.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/make/stub_includes/CL_orig/cl_platform.h b/make/stub_includes/CL_orig/cl_platform.h
index c8c6d7f6..2dbbb9d7 100644
--- a/make/stub_includes/CL_orig/cl_platform.h
+++ b/make/stub_includes/CL_orig/cl_platform.h
@@ -404,9 +404,12 @@ typedef unsigned int cl_GLenum;
/* #include <crtdefs.h> */
/* #define CL_ALIGNED(_x) _CRT_ALIGN(_x) */
#define CL_ALIGNED(_x)
+/* Don't warn if we're in GlueGen's preprocessor; it doesn't have compiler defines set */
+#elif defined( __GLUEGEN__ )
+ #define CL_ALIGNED(_x)
#else
- #warning "Need to implement some method to align data here"
- #define CL_ALIGNED(_x)
+ #warning "Need to implement some method to align data here"
+ #define CL_ALIGNED(_x)
#endif
/* Indicate whether .xyzw, .s0123 and .hi.lo are supported */