]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/defs.h
don't define __cplusplus for DECCXX if it is already defined
[wxWidgets.git] / include / wx / defs.h
index 82bfc41fb36c21dfbcf220be3cabe08b5bf5ae0b..6eba12944614ef6a31794405a98ce05c55751a69 100644 (file)
 #endif // VC++ 1.5
 
 // Digital Unix C++ compiler only defines this symbol for .cxx and .hxx files,
-// so define it ourselves
+// so define it ourselves (newer versions do it for all files, though, and
+// don't allow it to be redefined)
 #ifdef __DECCXX
-#ifndef __VMS
-define __cplusplus
-#endif
+    #if !defined(__VMS) && !defined(__cplusplus)
+        #define __cplusplus
+    #endif
 #endif // __DECCXX
 
 // Resolves linking problems under HP-UX