X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/737d112f2cd532ed9c2f46a7318b67afc2e4463e..7cbbcc84bfc001f55ede1336658d300e894a1fff:/buildtools/Cmake/gras_config.h.in diff --git a/buildtools/Cmake/gras_config.h.in b/buildtools/Cmake/gras_config.h.in index 5d0d6a2917..15a1e3579b 100644 --- a/buildtools/Cmake/gras_config.h.in +++ b/buildtools/Cmake/gras_config.h.in @@ -2,22 +2,28 @@ // With Cmake it creates /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@ -#endif -#ifndef WIN32 - #cmakedefine WIN32 @WIN32@ -#endif -#ifdef _WIN32 - #define DLL_EXPORT - #define __VISUALC__ -#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__@ /* Set to true if enable_model-checking is true */ #cmakedefine MMALLOC_WANT_OVERIDE_LEGACY @MMALLOC_WANT_OVERIDE_LEGACY@ @@ -44,6 +50,9 @@ /* Define if xbt contexts are based on our threads implementation or not */ #cmakedefine CONTEXT_THREADS @CONTEXT_THREADS@ +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_UCONTEXT_H @HAVE_UCONTEXT_H@ + /* Define if xbt contexts are based on ucontext or not */ #cmakedefine CONTEXT_UCONTEXT @CONTEXT_UCONTEXT@