mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-14 00:14:18 +00:00
Precautionary undef-ing of noexcept and nullptr.
This commit is contained in:
parent
128aacaccb
commit
49729815eb
1 changed files with 6 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue