Apple compatibility fixes

This commit is contained in:
oparviai 2014-01-07 18:24:28 +00:00
parent 746a90d610
commit afdfb293f6
2 changed files with 16 additions and 11 deletions

View File

@ -63,7 +63,11 @@ typedef unsigned long ulong;
#ifndef _WINDEF_
// if these aren't defined already by Windows headers, define now
#if defined(__APPLE__)
typedef signed char BOOL;
#else
typedef int BOOL;
#endif
#define FALSE 0
#define TRUE 1

View File

@ -42,6 +42,7 @@
#include "cpu_detect.h"
#include "STTypes.h"
#if defined(SOUNDTOUCH_ALLOW_X86_OPTIMIZATIONS)
#if defined(__GNUC__) && defined(__i386__)
@ -50,13 +51,13 @@
#elif defined(_M_IX86)
// windows non-gcc
#include <intrin.h>
#endif
#define bit_MMX (1 << 23)
#define bit_SSE (1 << 25)
#define bit_SSE2 (1 << 26)
#endif
#endif
//////////////////////////////////////////////////////////////////////////////
//