Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Set variables for windows.
authornavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 18 Jun 2010 16:01:26 +0000 (16:01 +0000)
committernavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 18 Jun 2010 16:01:26 +0000 (16:01 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7907 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/simgrid_config.h.in
include/xbt/graphxml_parse.h
src/surf/random_mgr.c
src/xbt/setset.c

index 8985e0f..a1baeee 100644 (file)
        #define DLL_IMPORT
 #endif
 
+#cmakedefine _XBT_WIN32 @_XBT_WIN32@   //this variable is set if it is a windows platform
+#cmakedefine _WIN32 @_WIN32@                   //this variable is set if it is a 32 bits windows platform
+#cmakedefine _WIN64 @_WIN64@                   //this variable is set if it is a 64 bits  windows platform
+#cmakedefine __VISUALC__ @__VISUALC__@
+#cmakedefine __BORLANDC__ @__BORLANDC__@
+
 #ifndef SIMGRID_PUBLIC_CONFIG_H
 #define SIMGRID_PUBLIC_CONFIG_H
 
index f70dbc4..84d3df8 100644 (file)
@@ -12,6 +12,7 @@
 #include <stdio.h>     /* to have FILE */
 #include "xbt/misc.h"
 #include "xbt/graphxml.h"
+#include "simgrid_config.h"
 
 /* Entry-point of the graphxml parser. */
 extern int_f_void_t xbt_graph_parse;
index ebc698d..4588aa0 100644 (file)
@@ -6,6 +6,7 @@
 
 #include "surf/random_mgr.h"
 #include "xbt/sysdep.h"
+#include "simgrid_config.h" /*_XBT_WIN32*/
 
 #ifdef _XBT_WIN32
 
index 3458182..16986fe 100644 (file)
@@ -3,6 +3,7 @@
 #include <string.h>
 #include "setset_private.h"
 #include "xbt/sysdep.h"
+#include "simgrid_config.h" /*_XBT_WIN32*/
 
 /*The function ffs doesn't exist for windows*/
 #ifdef _XBT_WIN32