1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Add guards to juce_blocks_basics, juce_dsp and juce_osc modules to ensure that they are not built if the compiler does not support them

This commit is contained in:
ed 2018-03-15 10:44:40 +00:00
parent 9341f15c5f
commit 8aa40a72c8
6 changed files with 47 additions and 1 deletions

View file

@ -35,6 +35,12 @@
#include "juce_osc.h"
#ifndef JUCE_STDLIB_HAS_STD_FUNCTION_SUPPORT
#ifndef JUCE_DEMO_RUNNER
#error "juce_osc module requires your compiler to have a newer version of the standard library"
#endif
#else
#include "osc/juce_OSCTypes.cpp"
#include "osc/juce_OSCTimeTag.cpp"
#include "osc/juce_OSCArgument.cpp"
@ -43,3 +49,5 @@
#include "osc/juce_OSCBundle.cpp"
#include "osc/juce_OSCReceiver.cpp"
#include "osc/juce_OSCSender.cpp"
#endif

View file

@ -54,6 +54,11 @@
#include <juce_core/juce_core.h>
#include <juce_events/juce_events.h>
#ifndef JUCE_STDLIB_HAS_STD_FUNCTION_SUPPORT
#ifndef JUCE_DEMO_RUNNER
#error "juce_osc module requires your compiler to have a newer version of the standard library"
#endif
#else
//==============================================================================
#include "osc/juce_OSCTypes.h"
@ -64,3 +69,5 @@
#include "osc/juce_OSCBundle.h"
#include "osc/juce_OSCReceiver.h"
#include "osc/juce_OSCSender.h"
#endif