mirror of
https://github.com/RPCS3/soundtouch.git
synced 2024-11-12 22:02:41 +01:00
Apple compatibility fixes
This commit is contained in:
parent
746a90d610
commit
afdfb293f6
@ -63,7 +63,11 @@ typedef unsigned long ulong;
|
|||||||
#ifndef _WINDEF_
|
#ifndef _WINDEF_
|
||||||
// if these aren't defined already by Windows headers, define now
|
// if these aren't defined already by Windows headers, define now
|
||||||
|
|
||||||
typedef int BOOL;
|
#if defined(__APPLE__)
|
||||||
|
typedef signed char BOOL;
|
||||||
|
#else
|
||||||
|
typedef int BOOL;
|
||||||
|
#endif
|
||||||
|
|
||||||
#define FALSE 0
|
#define FALSE 0
|
||||||
#define TRUE 1
|
#define TRUE 1
|
||||||
|
@ -42,19 +42,20 @@
|
|||||||
#include "cpu_detect.h"
|
#include "cpu_detect.h"
|
||||||
#include "STTypes.h"
|
#include "STTypes.h"
|
||||||
|
|
||||||
|
|
||||||
#if defined(SOUNDTOUCH_ALLOW_X86_OPTIMIZATIONS)
|
#if defined(SOUNDTOUCH_ALLOW_X86_OPTIMIZATIONS)
|
||||||
|
|
||||||
#if defined(__GNUC__) && defined(__i386__)
|
#if defined(__GNUC__) && defined(__i386__)
|
||||||
// gcc
|
// gcc
|
||||||
#include "cpuid.h"
|
#include "cpuid.h"
|
||||||
#elif defined(_M_IX86)
|
#elif defined(_M_IX86)
|
||||||
// windows non-gcc
|
// windows non-gcc
|
||||||
#include <intrin.h>
|
#include <intrin.h>
|
||||||
#define bit_MMX (1 << 23)
|
#endif
|
||||||
#define bit_SSE (1 << 25)
|
|
||||||
#define bit_SSE2 (1 << 26)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
#define bit_MMX (1 << 23)
|
||||||
|
#define bit_SSE (1 << 25)
|
||||||
|
#define bit_SSE2 (1 << 26)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user