Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
update gras architecture macro to 3 for Visual C++ (little endian, 8 bytes alignment)
[simgrid.git] / src / win32 / compiler / visualc.h
index 0bc76ea..0ed25e8 100644 (file)
 
 #include <win32/platform/select_platform_features.h>
 
+#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,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__ */