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

@ -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