summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorescoffon <escoffon>1998-06-10 12:22:29 (GMT)
committerescoffon <escoffon>1998-06-10 12:22:29 (GMT)
commit288ec4dcddacb46293f18b821d402be4b740610b (patch)
tree2f9a0d0c23c31cb3a0c4c66950ad6fc2db8166b4 /generic
parente89ceb463a1af73a9cd2db8c6371b9b914c07d7c (diff)
downloadtcl-288ec4dcddacb46293f18b821d402be4b740610b.zip
tcl-288ec4dcddacb46293f18b821d402be4b740610b.tar.gz
tcl-288ec4dcddacb46293f18b821d402be4b740610b.tar.bz2
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.
Diffstat (limited to 'generic')
-rw-r--r--generic/tcl.h18
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.
*/