OSDN Git Service

Fix speex configuration
authorStarg <starg@users.osdn.me>
Tue, 20 Mar 2018 08:13:25 +0000 (17:13 +0900)
committerStarg <starg@users.osdn.me>
Tue, 20 Mar 2018 08:13:25 +0000 (17:13 +0900)
speex/config.h
speex/speex.h

index abd35f0..f50aeb4 100644 (file)
@@ -6,6 +6,7 @@
 // SSE is enabled.
 #ifndef _USE_SSE
 #  define USE_ALLOCA
+#  define alloca _alloca
 #endif
 
 /* Default to floating point */
index 82ba016..968b2f1 100644 (file)
@@ -411,7 +411,7 @@ extern const SpeexMode * const speex_mode_list[SPEEX_NB_MODES];
 /** Obtain one of the modes available */
 const SpeexMode * speex_lib_get_mode (int mode);
 
-#ifndef WIN32
+#ifndef _WIN32
 /* We actually override the function in the narrowband case so that we can avoid linking in the wideband stuff */
 #define speex_lib_get_mode(mode) ((mode)==SPEEX_MODEID_NB ? &speex_nb_mode : speex_lib_get_mode (mode))
 #endif