Browse Source

Precautionary undef-ing of noexcept and nullptr.

tags/2021-05-28
jules 13 years ago
parent
commit
49729815eb
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      modules/juce_core/system/juce_PlatformDefs.h

+ 6
- 0
modules/juce_core/system/juce_PlatformDefs.h View File

@@ -316,6 +316,9 @@ namespace juce
//==============================================================================
// Declare some fake versions of nullptr and noexcept, for older compilers:
#if ! (DOXYGEN || JUCE_COMPILER_SUPPORTS_NOEXCEPT)
#ifdef noexcept
#undef noexcept
#endif
#define noexcept throw()
#if defined (_MSC_VER) && _MSC_VER > 1600
#define _ALLOW_KEYWORD_MACROS 1 // (to stop VC2012 complaining)
@@ -323,6 +326,9 @@ namespace juce
#endif
#if ! (DOXYGEN || JUCE_COMPILER_SUPPORTS_NULLPTR)
#ifdef nullptr
#undef nullptr
#endif
#define nullptr (0)
#endif


Loading…
Cancel
Save