X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dfe761f4bc8d35a74c3da5fabe99630c0788001f..657ace25fc9c54a83d3f99f0ee24322e3718089b:/src/win32/compiler/visualc.h diff --git a/src/win32/compiler/visualc.h b/src/win32/compiler/visualc.h index a8af217c66..0ed25e8114 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. */ @@ -308,7 +317,7 @@ the double. For now, GRAS requires the structures to be compacted. */ #undef GRAS_THISARCH #endif -#define GRAS_THISARCH 0 +#define GRAS_THISARCH 3 /* Path to the addr2line tool */ @@ -412,20 +421,6 @@ the double. For now, GRAS requires the structures to be compacted. */ #define S_IWUSR _S_IWRITE #define S_IRUSR _S_IREAD -#define HAVE_STRUCT_TIMESPEC 0 - -#define HAVE_STRUCT_TM 1 - -#define HAVE_GETTIMEOFDAY 1 - -#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; @@ -436,20 +431,5 @@ typedef unsigned int mode_t; /* Visual C++ does not declare the uint32_t type */ typedef unsigned int uint32_t; -/* Visual C++ doesn't declare the structure timespec */ -struct timespec -{ - long tv_sec; /* seconds */ - long tv_nsec; /* nanoseconds */ -}; - -/* Visual C++ doesn't declare the structure timezone : - *(a structure used to indicate the local time zone) - */ -struct timezone -{ - int tz_minuteswest; /* of Greenwich */ - int tz_dsttime; /* type of dst correction to apply */ -}; #endif /* #ifndef __XBT_VISUALC_COMPILER_CONFIG_H__ */