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

@ -20,9 +20,14 @@
==============================================================================
*/
#include "juce_blocks_basics.h"
#if (! defined (JUCE_STDLIB_HAS_STD_FUNCTION_SUPPORT)) || (! defined (JUCE_HAS_CONSTEXPR))
#ifndef JUCE_DEMO_RUNNER
#error "juce_blocks_basics module requires your compiler to have a newer version of the standard library"
#endif
#else
#include "protocol/juce_BitPackingUtilities.h"
#include "protocol/juce_BlocksProtocolDefinitions.h"
#include "protocol/juce_HostPacketDecoder.h"
@ -35,3 +40,5 @@
#include "topology/juce_RuleBasedTopologySource.cpp"
#include "visualisers/juce_DrumPadLEDProgram.cpp"
#include "visualisers/juce_BitmapLEDProgram.cpp"
#endif

View file

@ -50,6 +50,12 @@
#include <juce_events/juce_events.h>
#include <juce_audio_devices/juce_audio_devices.h>
#if (! defined (JUCE_STDLIB_HAS_STD_FUNCTION_SUPPORT)) || (! defined (JUCE_HAS_CONSTEXPR))
#ifndef JUCE_DEMO_RUNNER
#error "juce_blocks_basics module requires your compiler to have a newer version of the standard library"
#endif
#else
namespace juce
{
class TouchSurface;
@ -80,3 +86,5 @@ namespace juce
#include "littlefoot/juce_LittleFootCompiler.h"
#include "littlefoot/juce_LittleFootRemoteHeap.h"
}
#endif

View file

@ -35,6 +35,12 @@
#include "juce_dsp.h"
#if (! defined (JUCE_STDLIB_HAS_STD_FUNCTION_SUPPORT)) || (! defined (JUCE_HAS_CONSTEXPR))
#ifndef JUCE_DEMO_RUNNER
#error "juce_dsp module requires your compiler to have a newer version of the standard library"
#endif
#else
#ifndef JUCE_USE_VDSP_FRAMEWORK
#define JUCE_USE_VDSP_FRAMEWORK 1
#endif
@ -83,3 +89,4 @@
#include "frequency/juce_FFT_test.cpp"
#include "processors/juce_FIRFilter_test.cpp"
#endif
#endif

View file

@ -53,11 +53,18 @@
#pragma once
#define JUCE_DSP_H_INCLUDED
#include <juce_audio_basics/juce_audio_basics.h>
#include <juce_audio_formats/juce_audio_formats.h>
#if (! defined (JUCE_STDLIB_HAS_STD_FUNCTION_SUPPORT)) || (! defined (JUCE_HAS_CONSTEXPR))
#ifndef JUCE_DEMO_RUNNER
#error "juce_dsp module requires your compiler to have a newer version of the standard library"
#endif
#else
#if defined(_M_X64) || defined(__amd64__) || defined(__SSE2__) || (defined(_M_IX86_FP) && _M_IX86_FP == 2)
#if defined(_M_X64) || defined(__amd64__)
@ -264,3 +271,5 @@ namespace juce
#include "frequency/juce_Convolution.h"
#include "frequency/juce_Windowing.h"
#include "filter_design/juce_FilterDesign.h"
#endif

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