developer: only do the C++ reserved name checking on Linux
[kai/samba-autobuild/.git] / source4 / include / includes.h
index 796e313572d19e7682507350f492d8e3ba06baf0..d0a97020c6e470de2ebe05bd28b10635ebd621b4 100644 (file)
@@ -38,7 +38,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