Browse Source

Use _WIN32 instead of WIN32 in header files since WIN32 might not always be defined

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/
master
Kjetil Matheussen Filipe Coelho <falktx@falktx.com> 10 years ago
parent
commit
119040eae1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      systemdeps.h

+ 2
- 2
systemdeps.h View File

@@ -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)




Loading…
Cancel
Save