From 288ec4dcddacb46293f18b821d402be4b740610b Mon Sep 17 00:00:00 2001 From: escoffon Date: Wed, 10 Jun 1998 12:22:29 +0000 Subject: Added the definition of the EXPORT macro, used to declare that some symbols are to be exported from DLLs. This was added so that C packages can use a standard way of declaring exported symbols. --- generic/tcl.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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. */ -- cgit v0.12