mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
Ref T730, avoid math DEFINE warnings if values are already defined
This commit is contained in:
committed by
Mat Sutcliffe
parent
edb7a4795e
commit
1c0dc8b34c
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user