X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/933643df9146f8e7e114736d08c0b1547d075d98..8bad664ccedc6b6785d798227cc169da29cdf67c:/src/win32/compiler/visualc.h diff --git a/src/win32/compiler/visualc.h b/src/win32/compiler/visualc.h index 0bc76eaf49..27cce6cf8b 100644 --- a/src/win32/compiler/visualc.h +++ b/src/win32/compiler/visualc.h @@ -14,6 +14,15 @@ #include +#ifdef _WIN32_WINNT + #if _WIN32_WINNT < 0x0400 + #undef _WIN32_WINNT + #define _WIN32_WINNT 0x0400 + #endif +#else + #define _WIN32_WINNT 0x0400 +#endif + /* * include files. */ @@ -412,14 +421,6 @@ the double. For now, GRAS requires the structures to be compacted. */ #define S_IWUSR _S_IWRITE #define S_IRUSR _S_IREAD -#ifdef _WIN32_WINNT - #if _WIN32_WINNT < 0x0400 - #undef _WIN32_WINNT - #define _WIN32_WINNT 0x0400 - #endif -#else - #define _WIN32_WINNT 0x0400 -#endif /* Visual C++ does not declare the ssize_t type */ typedef int ssize_t; @@ -430,4 +431,5 @@ typedef unsigned int mode_t; /* Visual C++ does not declare the uint32_t type */ typedef unsigned int uint32_t; + #endif /* #ifndef __XBT_VISUALC_COMPILER_CONFIG_H__ */