Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
allow for stuff to be exported into the DLL on need, but not imported. This is mandat...
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 8 Feb 2007 15:44:38 +0000 (15:44 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 8 Feb 2007 15:44:38 +0000 (15:44 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3119 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/xbt/misc.h

index 7d139f4..96a6f75 100644 (file)
  *   * If you compile under unix, this file defines the macro to 'extern', even if it's not mandatory with modern compilers
  */
 
+
 #ifdef DLL_EXPORT
-#  define XBT_PUBLIC(type)                     __declspec(dllexport) type
+#  define XBT_PUBLIC(type)                       __declspec(dllexport) type
+#  define XBT_PUBLIC_NO_IMPORT(type)  __declspec(dllexport) type
 #else
 #  ifdef DLL_STATIC
-#    define XBT_PUBLIC(type)           type
+#    define XBT_PUBLIC(type)              type
+#    define XBT_PUBLIC_NO_IMPORT(type) type
 #  else
 #    ifdef _WIN32
-#      define XBT_PUBLIC(type)         __declspec(dllimport) type 
+#      define XBT_PUBLIC(type)              __declspec(dllimport) type 
+#      define XBT_PUBLIC_NO_IMPORT(type) type
 #       else
-#      define XBT_PUBLIC(type)         extern type
+#      define XBT_PUBLIC(type)              extern type
+#      define XBT_PUBLIC_NO_IMPORT(type) type
 #    endif
 #  endif
 #endif