Go to the documentation of this file.
   41 #ifndef __OPENFLUID_DLLEXPORT_HPP__ 
   42 #define __OPENFLUID_DLLEXPORT_HPP__ 
   45 #include <openfluid/global.hpp> 
   52 #if defined OPENFLUID_OS_WINDOWS 
   53   #define OPENFLUID_HELPER_DLL_IMPORT __declspec(dllimport) 
   54   #define OPENFLUID_HELPER_DLL_EXPORT __declspec(dllexport) 
   55   #define OPENFLUID_HELPER_DLL_LOCAL 
   58     #define OPENFLUID_HELPER_DLL_IMPORT __attribute__ ((visibility ("default"))) 
   59     #define OPENFLUID_HELPER_DLL_EXPORT __attribute__ ((visibility ("default"))) 
   60     #define OPENFLUID_HELPER_DLL_LOCAL  __attribute__ ((visibility ("hidden"))) 
   62     #define OPENFLUID_HELPER_DLL_IMPORT 
   63     #define OPENFLUID_HELPER_DLL_EXPORT 
   64     #define OPENFLUID_HELPER_DLL_LOCAL 
   78 #ifdef OPENFLUID_DLL // lib is a DLL 
   79   #ifdef OPENFLUID_DLL_EXPORTS // defined if we are building the DLL (instead of using it) 
   80     #define OPENFLUID_API OPENFLUID_HELPER_DLL_EXPORT 
   82     #define OPENFLUID_API OPENFLUID_HELPER_DLL_IMPORT 
   84   #define OPENFLUID_LOCAL OPENFLUID_HELPER_DLL_LOCAL 
   85   #define OPENFLUID_PLUGIN OPENFLUID_HELPER_DLL_EXPORT 
   86 #else // lib is static 
   88   #define OPENFLUID_LOCAL 
   89   #define OPENFLUID_PLUGIN OPENFLUID_HELPER_DLL_EXPORT