]> gerrit.simantics Code Review - simantics/fmil.git/blobdiff - org.simantics.fmil.core/native/FMUSimulator/include/win64/fmilib_config.h
Add FMILibrary-2.0.3 to org.simantics.fmil.core\native.
[simantics/fmil.git] / org.simantics.fmil.core / native / FMUSimulator / include / win64 / fmilib_config.h
diff --git a/org.simantics.fmil.core/native/FMUSimulator/include/win64/fmilib_config.h b/org.simantics.fmil.core/native/FMUSimulator/include/win64/fmilib_config.h
new file mode 100644 (file)
index 0000000..7d9861a
--- /dev/null
@@ -0,0 +1,163 @@
+/*\r
+    Copyright (C) 2012 Modelon AB\r
+\r
+    This program is free software: you can redistribute it and/or modify\r
+    it under the terms of the BSD style license.\r
+\r
+     This program is distributed in the hope that it will be useful,\r
+    but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+    FMILIB_License.txt file for more details.\r
+\r
+    You should have received a copy of the FMILIB_License.txt file\r
+    along with this program. If not, contact Modelon AB <http://www.modelon.com>.\r
+*/\r
+\r
+#ifndef CONFIG_FMILIB_H_\r
+#define CONFIG_FMILIB_H_\r
+\r
+/** \file fmilib_config.h\r
+       \brief Library configuration file generated by the build system. \r
+*/\r
+\r
+#ifndef WIN32\r
+#define WIN32\r
+#ifdef WIN32\r
+/** \def WIN32\r
+       \brief WIN32 is used to identify Windows OS (set on both Win32 and Win64) \r
+*/\r
+#endif\r
+#endif\r
+\r
+/* #undef MINGW */\r
+#ifdef MINGW\r
+/** \def MINGW\r
+       \brief MINGW is used to identify MSYS/MinGW environment \r
+*/\r
+#endif\r
+\r
+#ifndef CMAKE_INTDIR\r
+#define CMAKE_INTDIR "."\r
+/** \def CMAKE_INTDIR\r
+       \brief The macro #CMAKE_INTDIR gives intermediate directory for the current configuration (Debug/Release). \r
+\r
+It is redefined to "." for Makefile based build environments. Otherwise is set by MSVC. */\r
+#endif\r
+\r
+/** \brief Platform folder separator */\r
+#define FMI_FILE_SEP "\\"      \r
+\r
+/** \brief DLL file name suffix(.so, .dll, ...) */\r
+#define FMI_DLL_EXT ".dll" \r
+\r
+/** \brief Folder name inside FMU in which the DLL is found for this platform */\r
+#define FMI_PLATFORM "win64"\r
+\r
+/** \brief Folder name inside FMU where binaries are */\r
+#define FMI_BINARIES "binaries"\r
+/** \brief Model description XML file name */\r
+#define FMI_MODEL_DESCRIPTION_XML "modelDescription.xml"\r
+\r
+/* #undef FMILIB_STATIC_LIB_ONLY */\r
+#ifdef FMILIB_STATIC_LIB_ONLY\r
+/** \r
+\def FMILIB_STATIC_LIB_ONLY\r
+\brief The macro #FMILIB_STATIC_LIB_ONLY is defined if no fmilib_shared is build. */\r
+#endif\r
+\r
+#ifndef FMILIB_STATIC_LIB_ONLY\r
+ #if defined WIN32\r
+  #ifdef FMILIB_BUILDING_LIBRARY\r
+    #if 0 /* defined(__GNUC__)  MSYS currently does not support visibility attribute */ \r
+      #define FMILIB_EXPORT __attribute__ ((dllexport))\r
+    #else\r
+               /* Note: actually gcc seems to also supports this syntax. */\r
+      #define FMILIB_EXPORT __declspec(dllexport) \r
+    #endif\r
+  #else\r
+    #if 0 /* defined(__GNUC__) MSYS currently does not support visibility attribute  */\r
+      #define FMILIB_EXPORT __attribute__ ((dllimport))\r
+    #else\r
+               /* Note: actually gcc seems to also supports this syntax. */\r
+      #define FMILIB_EXPORT __declspec(dllimport)\r
+    #endif\r
+  #endif\r
+  #define FMILIB_PRIVATE\r
+ #else\r
+  #if __GNUC__ >= 4\r
+    #define FMILIB_EXPORT __attribute__ ((visibility ("default")))\r
+    #define FMILIB_PRIVATE  __attribute__ ((visibility ("hidden")))\r
+  #else\r
+    #define FMILIB_EXPORT\r
+    #define FMILIB_PRIVATE\r
+  #endif\r
+ #endif\r
+#else\r
+  #if __GNUC__ >= 4\r
+    #define FMILIB_EXPORT __attribute__ ((visibility ("default")))\r
+    #define FMILIB_PRIVATE  __attribute__ ((visibility ("hidden")))\r
+  #else\r
+    #define FMILIB_EXPORT\r
+    #define FMILIB_PRIVATE\r
+  #endif\r
+#endif\r
+\r
+/** \def FMILIB_EXPORT\r
+       \brief Used to declare the public API of the library needed for dynamic linking. \r
+       \def FMILIB_PRIVATE\r
+       \brief Intended for declaration of the private library functions.\r
+*/\r
+\r
+/* #undef FMILIB_ENABLE_LOG_LEVEL_DEBUG */\r
+#ifndef FMILIB_ENABLE_LOG_LEVEL_DEBUG\r
+/* Just for doxygen */\r
+#define FMILIB_ENABLE_LOG_LEVEL_DEBUG\r
+#undef FMILIB_ENABLE_LOG_LEVEL_DEBUG\r
+#endif\r
+/** \r
+\def FMILIB_ENABLE_LOG_LEVEL_DEBUG\r
+\brief Activates debug level log messages. If not defined the debug messages are compiled out. \r
+*/\r
+\r
+#if defined _MSC_VER\r
+       #define FMILIB_SIZET_FORMAT "%Iu"\r
+#else \r
+       #define FMILIB_SIZET_FORMAT "%zu"\r
+#endif\r
+\r
+/* #undef FMILIB_GENERATE_BUILD_STAMP */\r
+#ifndef FMILIB_GENERATE_BUILD_STAMP\r
+/* Just for Doxygen */\r
+#define FMILIB_GENERATE_BUILD_STAMP\r
+#undef FMILIB_GENERATE_BUILD_STAMP\r
+#endif\r
+/** \r
+\def FMILIB_GENERATE_BUILD_STAMP\r
+\brief Generate build-stamp file and enable fmilib_get_build_stamp(). \r
+*/\r
+\r
+#ifdef FMILIB_GENERATE_BUILD_STAMP\r
+#ifdef __cplusplus\r
+extern "C" {\r
+#endif\r
+\r
+/** \brief Get the library build stamp. \r
+       \return A string giving SVN revision and build time for the library.\r
+       \r
+       The function is only active if the library was configured with #FMILIB_GENERATE_BUILD_STAMP ON\r
+*/\r
+FMILIB_EXPORT const char* fmilib_get_build_stamp(void);\r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+#endif\r
+\r
+#define HAVE_VA_COPY\r
+/* #undef HAVE___VA_COPY */\r
+\r
+#define HAVE_VSNPRINTF\r
+#ifdef HAVE_VSNPRINTF\r
+#define jm_rpl_vsnprintf vsnprintf\r
+#endif\r
+\r
+#endif\r