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
This commit is contained in:
parent
d40ff25e3f
commit
52cadebd40
2 changed files with 14 additions and 3 deletions
|
|
@ -9,11 +9,13 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#ifdef WIN32
|
#ifndef DllExport
|
||||||
|
# ifdef WIN32
|
||||||
# define DllExport __declspec( dllexport )
|
# define DllExport __declspec( dllexport )
|
||||||
#else
|
# else
|
||||||
# define DllExport
|
# define DllExport
|
||||||
#endif
|
# endif
|
||||||
|
#endif
|
||||||
%}
|
%}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
|
|
||||||
|
|
@ -86,3 +86,12 @@
|
||||||
#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
|
#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
|
||||||
# define _CRT_SECURE_NO_DEPRECATE
|
# define _CRT_SECURE_NO_DEPRECATE
|
||||||
#endif
|
#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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue