From: Vadim Zeitlin Date: Thu, 9 Mar 2000 16:40:55 +0000 (+0000) Subject: don't define __cplusplus for DECCXX if it is already defined X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6cbe6d08213d4fa5f9404bd249d93bf0b586e0f5 don't define __cplusplus for DECCXX if it is already defined git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/defs.h b/include/wx/defs.h index 82bfc41fb3..6eba129446 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -122,11 +122,12 @@ #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