diff options
-rw-r--r-- | generic/tcl.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/generic/tcl.h b/generic/tcl.h index 0a80e52..7efe198 100644 --- a/generic/tcl.h +++ b/generic/tcl.h @@ -181,6 +181,24 @@ typedef long LONG; #endif /* __WIN32__ */ /* + * Macro used to declare a function to be exported by a DLL. + * Used by windows, maps to a simple declaration on non-windows systems + */ +#ifdef __WIN32__ +# if defined(_MSC_VER) +# define EXPORT(a,b) __declspec(dllexport) a b +# else +# if defined(__BORLANDC__) +# define EXPORT(a,b) a _export b +# else +# define EXPORT(a,b) a b +# endif +# endif +#else +# define EXPORT(a,b) a b +#endif + +/* * Miscellaneous declarations. */ |