Commit dd8e04fb authored by Martin Storsjo's avatar Martin Storsjo Committed by Tristan Matthews

Check for _WIN32 instead of WIN32 in preprocessor checks

_WIN32 is always defined by the compiler automatically when targeting
that platform, while WIN32 only is defined automatically in some
configurations, and e.g. in MSVC only ever is defined in project files
(if at all).

Some other checks in the codebase already check for both WIN32 and
_WIN32; those are left untouched.
parent 566e3a94
......@@ -412,7 +412,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
......
......@@ -36,7 +36,7 @@
#define STACK_ALLOC_H
#ifdef USE_ALLOCA
# ifdef WIN32
# ifdef _WIN32
# include <malloc.h>
# else
# ifdef HAVE_ALLOCA_H
......
......@@ -10,7 +10,7 @@
extern "C" {
#endif
#ifdef WIN32
#ifdef _WIN32
#define snprintf _snprintf
#endif
......
......@@ -4,7 +4,7 @@
#define USE_COMPACT_KISS_FFT
//#define USE_KISS_FFT
#ifdef WIN32
#ifdef _WIN32
//#define FIXED_POINT
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment