Ref T730, avoid math DEFINE warnings if values are already defined

This commit is contained in:
Klaus Basan
2019-10-05 23:19:31 +02:00
committed by Mat Sutcliffe
parent edb7a4795e
commit 1c0dc8b34c

View File

@@ -26,16 +26,17 @@
* DEALINGS IN THE SOFTWARE.
*/
#ifndef BLACKSOUND_DSP_SIMPLE_HEADER_H
#define BLACKSOUND_DSP_SIMPLE_HEADER_H
#ifndef __SIMPLE_HEADER_H__
#define __SIMPLE_HEADER_H__
#if _MSC_VER > 1000 // MS Visual Studio
#define INLINE __forceinline // forces inline
#define NOMINMAX // for standard library min(), max()
#define _USE_MATH_DEFINES // for math constants
#else // other IDE's
#define INLINE inline
#if _MSC_VER > 1000 // MS Visual Studio
# define INLINE __forceinline // forces inline
# define NOMINMAX // for standard library min(), max()
# ifndef M_PI
# define _USE_MATH_DEFINES // for math constants
# endif
#else // other IDE's
# define INLINE inline
#endif
#include <algorithm> // for min(), max()