summaryrefslogtreecommitdiffstats
path: root/win/tclWinReg.c
diff options
context:
space:
mode:
Diffstat (limited to 'win/tclWinReg.c')
-rw-r--r--win/tclWinReg.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/win/tclWinReg.c b/win/tclWinReg.c
index 3054e53..7d7a377 100644
--- a/win/tclWinReg.c
+++ b/win/tclWinReg.c
@@ -21,6 +21,14 @@
#undef WIN32_LEAN_AND_MEAN
/*
+ * EXPORT is set unconditionally to DLLEXPORT because the Registry_Init
+ * declaration is in the source file itself, which is only accessed when
+ * we are building a library
+ */
+#undef EXPORT
+#define EXPORT DLLEXPORT
+
+/*
* VC++ has an alternate entry point called DllMain, so we need to rename
* our entry point.
*/