diff options
author | Marcelo Matus <mmatus@acms.arizona.edu> | 2006-02-28 18:59:41 +0000 |
---|---|---|
committer | Marcelo Matus <mmatus@acms.arizona.edu> | 2006-02-28 18:59:41 +0000 |
commit | 52cadebd40e8a47db3f76059e093646cbdf59c35 (patch) | |
tree | 21980d2e7563cd1de91a930d3cc53fede7d5ed85 /Lib/swiglabels.swg | |
parent | d40ff25e3fbccc80f5de60138f8b9ffab840adc2 (diff) | |
download | swig-52cadebd40e8a47db3f76059e093646cbdf59c35.tar.gz |
add the DllExport label for backward compatibility
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8916 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/swiglabels.swg')
-rw-r--r-- | Lib/swiglabels.swg | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/swiglabels.swg b/Lib/swiglabels.swg index 8bd4b3dfd..02b0803ec 100644 --- a/Lib/swiglabels.swg +++ b/Lib/swiglabels.swg @@ -86,3 +86,12 @@ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) # define _CRT_SECURE_NO_DEPRECATE #endif + +/* Add DllExport for backward compatibility */ +#ifndef DllExport +# if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# define DllExport __declspec( dllexport ) +# else +# define DllExport +# endif +#endif |