From 2ea719ad39936d31b38a931527486add9d1a03c9 Mon Sep 17 00:00:00 2001 From: oparviai Date: Sun, 17 Jul 2011 10:58:40 +0000 Subject: [PATCH] #define compatibility patches --- source/SoundStretch/main.cpp | 2 +- source/SoundTouch/cpu_detect_x86_win.cpp | 4 +--- source/SoundTouch/mmx_optimized.cpp | 4 ---- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/source/SoundStretch/main.cpp b/source/SoundStretch/main.cpp index 6fa1a2d..7b89452 100644 --- a/source/SoundStretch/main.cpp +++ b/source/SoundStretch/main.cpp @@ -50,7 +50,7 @@ using namespace std; // Processing chunk size #define BUFF_SIZE 2048 -#if WIN32 +#if _WIN32 #include #include diff --git a/source/SoundTouch/cpu_detect_x86_win.cpp b/source/SoundTouch/cpu_detect_x86_win.cpp index 1ea50ea..44e0520 100644 --- a/source/SoundTouch/cpu_detect_x86_win.cpp +++ b/source/SoundTouch/cpu_detect_x86_win.cpp @@ -42,9 +42,7 @@ #include "cpu_detect.h" -#ifndef WIN32 -#error wrong platform - this source code file is exclusively for Win32 platform -#endif +#include "STTypes.h" ////////////////////////////////////////////////////////////////////////////// // diff --git a/source/SoundTouch/mmx_optimized.cpp b/source/SoundTouch/mmx_optimized.cpp index 495599c..feeab49 100644 --- a/source/SoundTouch/mmx_optimized.cpp +++ b/source/SoundTouch/mmx_optimized.cpp @@ -53,10 +53,6 @@ #ifdef SOUNDTOUCH_ALLOW_MMX // MMX routines available only with integer sample type -#if !(WIN32 || __i386__ || __x86_64__) -#error "wrong platform - this source code file is exclusively for x86 platforms" -#endif - using namespace soundtouch; //////////////////////////////////////////////////////////////////////////////