// With Cmake it creates <root>/src/gras_config.h
/* Set somes variables for Windows compilation */
+
+#ifdef _XBT_DLL_EXPORT
+ #define DLL_EXPORT
+#else
+ #ifdef _XBT_DLL_STATIC
+ #define DLL_STATIC
+ #else
+ #define DLL_IMPORT
+ #endif
+#endif
+
#ifndef __STRICT_ANSI__
#cmakedefine __STRICT_ANSI__ @__STRICT_ANSI__@
#endif
#ifndef _MSC_VER
#cmakedefine _MSC_VER @_MSC_VER@
#endif
-#ifndef _WIN32
- #cmakedefine _WIN32 @_WIN32@
+#ifndef _M_IX86
+ #cmakedefine _M_IX86 @_M_IX86@
#endif
-#ifndef WIN32
- #cmakedefine WIN32 @WIN32@
-#endif
-#ifdef _WIN32
- #define DLL_EXPORT
- #define __VISUALC__
+#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__@
+#ifdef _XBT_WIN32
+ #ifndef __GNUC__
+ #cmakedefine __GNUC__ @__GNUC__@
+ #endif
#endif
-
/* Set to true if enable_model-checking is true */
#cmakedefine MMALLOC_WANT_OVERIDE_LEGACY @MMALLOC_WANT_OVERIDE_LEGACY@
#cmakedefine HAVE_MC @HAVE_MC@
/* Define if xbt contexts are based on our threads implementation or not */
#cmakedefine CONTEXT_THREADS @CONTEXT_THREADS@
+/* Define to 1 if you have the <ucontext.h> header file. */
+#cmakedefine HAVE_UCONTEXT_H @HAVE_UCONTEXT_H@
+
/* Define if xbt contexts are based on ucontext or not */
#cmakedefine CONTEXT_UCONTEXT @CONTEXT_UCONTEXT@
`char[]'. */
#cmakedefine YYTEXT_POINTER
- #ifndef __VISUALC__
- /* Optional va_copy() implementation activation */
- #ifndef HAVE_VA_COPY
- #define va_copy(d, s) __VA_COPY_USE(d, s)
- #endif
- /* Define to id of used va_copy() implementation */
- #cmakedefine __VA_COPY_USE(d, s) @__VA_COPY_USE@
+/* Optional va_copy() implementation activation */
+#ifndef HAVE_VA_COPY
+#define va_copy(d, s) __VA_COPY_USE(d, s)
#endif
+/* Define to id of used va_copy() implementation */
+#cmakedefine __VA_COPY_USE(d, s) @__VA_COPY_USE@
/* Define to empty if `const' does not conform to ANSI C. */
#cmakedefine const @const@