Browse Source

Fixed a bug where FlexBox would still be compiled on older versions of VS

tags/2021-05-28
hogliux 8 years ago
parent
commit
d73f776370
3 changed files with 6 additions and 3 deletions
  1. +2
    -1
      examples/Demo/Source/Demos/FlexBoxDemo.cpp
  2. +2
    -1
      modules/juce_gui_basics/juce_gui_basics.cpp
  3. +2
    -1
      modules/juce_gui_basics/juce_gui_basics.h

+ 2
- 1
examples/Demo/Source/Demos/FlexBoxDemo.cpp View File

@@ -24,7 +24,8 @@
#include "../JuceDemoHeader.h"
#if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS // the FlexBox classes are C++11-only
// these classes are C++11-only
#if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS && JUCE_COMPILER_SUPPORTS_INITIALIZER_LISTS && JUCE_COMPILER_SUPPORTS_LAMBDAS
struct DemoFlexPanel : public juce::Component,
private juce::TextEditor::Listener,


+ 2
- 1
modules/juce_gui_basics/juce_gui_basics.cpp View File

@@ -253,7 +253,8 @@ extern bool juce_areThereAnyAlwaysOnTopWindows();
#include "misc/juce_BubbleComponent.cpp"
#include "misc/juce_DropShadower.cpp"
#if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS // these classes are C++11-only
// these classes are C++11-only
#if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS && JUCE_COMPILER_SUPPORTS_INITIALIZER_LISTS && JUCE_COMPILER_SUPPORTS_LAMBDAS
#include "layout/juce_FlexBox.cpp"
#endif


+ 2
- 1
modules/juce_gui_basics/juce_gui_basics.h View File

@@ -282,7 +282,8 @@ class FlexBox;
#include "lookandfeel/juce_LookAndFeel_V1.h"
#include "lookandfeel/juce_LookAndFeel_V3.h"
#if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS // these classes are C++11-only
// these classes are C++11-only
#if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS && JUCE_COMPILER_SUPPORTS_INITIALIZER_LISTS && JUCE_COMPILER_SUPPORTS_LAMBDAS
#include "layout/juce_FlexItem.h"
#include "layout/juce_FlexBox.h"
#endif


Loading…
Cancel
Save