Browse Source

Rearranged some error-catching code.

tags/2021-05-28
jules 13 years ago
parent
commit
535f248c53
2 changed files with 9 additions and 9 deletions
  1. +9
    -0
      modules/juce_core/juce_core.h
  2. +0
    -9
      modules/juce_core/system/juce_TargetPlatform.h

+ 9
- 0
modules/juce_core/juce_core.h View File

@@ -26,6 +26,15 @@
#ifndef __JUCE_CORE_JUCEHEADER__
#define __JUCE_CORE_JUCEHEADER__
/* This line is here as a sanity-check to catch syntax errors caused by mistakes in 3rd-party
header files that have been included prior to this one. If you hit an error at this line,
there's probably some kind of syntax problem in whatever code immediately precedes this header.
It also causes an error if you attempt to build using a C or obj-C compiler rather than a C++ one.
*/
namespace DummyNamespaceStatementToCatchSyntaxErrors {}
//==============================================================================
#include "system/juce_TargetPlatform.h"
//=============================================================================


+ 0
- 9
modules/juce_core/system/juce_TargetPlatform.h View File

@@ -39,15 +39,6 @@
- Either JUCE_GCC or JUCE_MSVC
*/
//==============================================================================
/* This line is here as a sanity-check to catch syntax errors caused by mistakes in 3rd-party
header files that have been included before this one. If you hit an error at this line, there
must be some kind of syntax problem in whatever code immediately precedes this header.
It also causes an error if you attempt to build using a C or obj-C compiler rather than a C++ one.
*/
namespace JuceDummyNamespace {}
//==============================================================================
#if (defined (_WIN32) || defined (_WIN64))
#define JUCE_WIN32 1


Loading…
Cancel
Save