From: mquinson Date: Tue, 29 Aug 2006 23:58:29 +0000 (+0000) Subject: Try to do what is needed to export data in DLL during cross-compiles X-Git-Tag: v3.3~2588 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d7515d47fd9d644de5a2366aa214c05ace3c89c2 Try to do what is needed to export data in DLL during cross-compiles git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2771 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/include/xbt/misc.h b/include/xbt/misc.h index ef4ae2e409..9b232f3ee6 100644 --- a/include/xbt/misc.h +++ b/include/xbt/misc.h @@ -45,6 +45,17 @@ # define _XBT_INLINE #endif +/* The cruft needed to export data in DLLs */ +#ifdef _WIN32 +# ifdef DLL_EXPORT +# define XBT_EXPORT __declspec(dllexport) /* building the DLL */ +# else +# define XBT_EXPORT extern __declspec(dllimport) /* using the DLL */ +# endif +#else +# define XBT_EXPORT +#endif + #ifndef max