SWIGEXPORT macro simplification, Borland can use the normal Windows convention __declspec(dllexport)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6242 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5bac1fbe84
commit
f0f063f7ae
1 changed files with 5 additions and 16 deletions
|
|
@ -16,28 +16,17 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
|
#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
|
||||||
# if defined(_MSC_VER) || defined(__GNUC__)
|
# if !defined(STATIC_LINKED)
|
||||||
# if defined(STATIC_LINKED)
|
# define SWIGEXPORT(a) __declspec(dllexport) a
|
||||||
# define SWIGEXPORT(a) a
|
|
||||||
# define SWIGIMPORT(a) extern a
|
|
||||||
# else
|
|
||||||
# define SWIGEXPORT(a) __declspec(dllexport) a
|
|
||||||
# define SWIGIMPORT(a) extern a
|
|
||||||
# endif
|
|
||||||
# else
|
# else
|
||||||
# if defined(__BORLANDC__)
|
# define SWIGEXPORT(a) a
|
||||||
# define SWIGEXPORT(a) a _export
|
|
||||||
# define SWIGIMPORT(a) a _export
|
|
||||||
# else
|
|
||||||
# define SWIGEXPORT(a) a
|
|
||||||
# define SWIGIMPORT(a) a
|
|
||||||
# endif
|
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# define SWIGEXPORT(a) a
|
# define SWIGEXPORT(a) a
|
||||||
# define SWIGIMPORT(a) a
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define SWIGIMPORT(a) a
|
||||||
|
|
||||||
#ifdef SWIG_GLOBAL
|
#ifdef SWIG_GLOBAL
|
||||||
# define SWIGRUNTIME(a) SWIGEXPORT(a)
|
# define SWIGRUNTIME(a) SWIGEXPORT(a)
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue