developer: only do the C++ reserved name checking on Linux
[kai/samba-autobuild/.git] / source3 / include / includes.h
index 11066e25ad27a07b1150e15f75741bfe4922066a..87061eba34cf35cd60d9dec4c1eccbd190d2812f 100644 (file)
@@ -34,7 +34,7 @@
    to include --with-developer since too many systems
    still have comflicts with their header files (e.g. IRIX 6.4) */
 
-#if !defined(__cplusplus) && defined(DEVELOPER)
+#if !defined(__cplusplus) && defined(DEVELOPER) && defined(__linux__)
 #define class #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
 #define private #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
 #define public #error DONT_USE_CPLUSPLUS_RESERVED_NAMES