For instance, if compiling with gcc and the option --stc=c++11, WIN32 is not defined. See http://webcache.googleusercontent.com/search?q=cache:amvfgAUCdsgJ:sourceforge.net/p/mingw-w64/mailman/message/31850993/+&cd=4&hl=en&ct=clnk&gl=no http://sourceforge.net/p/mingw-w64/mailman/message/31850993/tags/v1.9.11-RC1
| @@ -58,7 +58,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |||||
| #endif | #endif | ||||
| #if defined(WIN32) && !defined(__CYGWIN__) && !defined(GNU_WIN32) | |||||
| #if defined(_WIN32) && !defined(__CYGWIN__) && !defined(GNU_WIN32) | |||||
| #include <windows.h> | #include <windows.h> | ||||
| @@ -101,7 +101,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |||||
| typedef pthread_t jack_native_thread_t; | typedef pthread_t jack_native_thread_t; | ||||
| #endif | #endif | ||||
| #endif /* WIN32 && !__CYGWIN__ && !GNU_WIN32 */ | |||||
| #endif /* _WIN32 && !__CYGWIN__ && !GNU_WIN32 */ | |||||
| #if defined(__APPLE__) || defined(__linux__) || defined(__sun__) || defined(sun) || defined(__unix__) || defined(__CYGWIN__) || defined(GNU_WIN32) | #if defined(__APPLE__) || defined(__linux__) || defined(__sun__) || defined(sun) || defined(__unix__) || defined(__CYGWIN__) || defined(GNU_WIN32) | ||||
| @@ -122,7 +122,7 @@ int jack_client_stop_thread(jack_client_t* client, jack_native_thread_t thread) | |||||
| */ | */ | ||||
| int jack_client_kill_thread(jack_client_t* client, jack_native_thread_t thread) JACK_OPTIONAL_WEAK_EXPORT; | int jack_client_kill_thread(jack_client_t* client, jack_native_thread_t thread) JACK_OPTIONAL_WEAK_EXPORT; | ||||
| #ifndef WIN32 | |||||
| #ifndef _WIN32 | |||||
| typedef int (*jack_thread_creator_t)(pthread_t*, | typedef int (*jack_thread_creator_t)(pthread_t*, | ||||
| const pthread_attr_t*, | const pthread_attr_t*, | ||||
| @@ -47,7 +47,7 @@ | |||||
| require linker arguments in the client as well. | require linker arguments in the client as well. | ||||
| */ | */ | ||||
| #ifdef WIN32 | |||||
| #ifdef _WIN32 | |||||
| /* | /* | ||||
| Not working with __declspec(dllexport) so normal linking | Not working with __declspec(dllexport) so normal linking | ||||
| Linking with JackWeakAPI.cpp will be the preferred way. | Linking with JackWeakAPI.cpp will be the preferred way. | ||||
| @@ -60,7 +60,7 @@ | |||||
| #else | #else | ||||
| /* Add other things here for non-gcc platforms */ | /* Add other things here for non-gcc platforms */ | ||||
| #ifdef WIN32 | |||||
| #ifdef _WIN32 | |||||
| #define JACK_WEAK_EXPORT | #define JACK_WEAK_EXPORT | ||||
| #endif | #endif | ||||
| @@ -81,7 +81,7 @@ | |||||
| #else | #else | ||||
| /* Add other things here for non-gcc platforms */ | /* Add other things here for non-gcc platforms */ | ||||
| #ifdef WIN32 | |||||
| #ifdef _WIN32 | |||||
| #define JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT | #define JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT | ||||
| #endif | #endif | ||||