summaryrefslogtreecommitdiffstats
path: root/generic/tk.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-02-13 09:57:07 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-02-13 09:57:07 (GMT)
commit4a1828d3e7f328cce5d6b770ffbb6ea5a5373d0c (patch)
treeee4d9a63fa953072901b6d76880e60f81266dd78 /generic/tk.h
parent58dee83cb742162ddda8b91eb7a8132aebaa68b4 (diff)
downloadtk-4a1828d3e7f328cce5d6b770ffbb6ea5a5373d0c.zip
tk-4a1828d3e7f328cce5d6b770ffbb6ea5a5373d0c.tar.gz
tk-4a1828d3e7f328cce5d6b770ffbb6ea5a5373d0c.tar.bz2
Make tk.h work unchanged with Tcl 9.0 (novem), account for possible missing TCL_STORAGE_CLASS definition. More internal use of size_t in stead of int.
Diffstat (limited to 'generic/tk.h')
-rw-r--r--generic/tk.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/tk.h b/generic/tk.h
index 1d070d3..1cb10e2 100644
--- a/generic/tk.h
+++ b/generic/tk.h
@@ -105,6 +105,10 @@ extern "C" {
#ifdef BUILD_tk
#undef TCL_STORAGE_CLASS
#define TCL_STORAGE_CLASS DLLEXPORT
+#else
+# ifndef TCL_STORAGE_CLASS
+# define TCL_STORAGE_CLASS DLLIMPORT
+# endif
#endif
/*