summaryrefslogtreecommitdiffstats
path: root/generic/tclRegexp.h
diff options
context:
space:
mode:
authorescoffon <escoffon>1998-07-29 13:50:02 (GMT)
committerescoffon <escoffon>1998-07-29 13:50:02 (GMT)
commit54f9510d6a25a725ce464f27a4eb7d7dbf8866be (patch)
tree3931c384cbe7d51e6abebdd79f2738aa0aa7d5db /generic/tclRegexp.h
parentc6a15af8ea887f2adf5b777c37e5fa7ec2f25cd6 (diff)
downloadtcl-54f9510d6a25a725ce464f27a4eb7d7dbf8866be.zip
tcl-54f9510d6a25a725ce464f27a4eb7d7dbf8866be.tar.gz
tcl-54f9510d6a25a725ce464f27a4eb7d7dbf8866be.tar.bz2
- added setting of EXPORT to DLLEXPORT if we are building Tcl.
Diffstat (limited to 'generic/tclRegexp.h')
-rw-r--r--generic/tclRegexp.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/generic/tclRegexp.h b/generic/tclRegexp.h
index 986316b..dc7696f 100644
--- a/generic/tclRegexp.h
+++ b/generic/tclRegexp.h
@@ -14,6 +14,11 @@
#include "tcl.h"
#endif
+#ifdef BUILD_tcl
+# undef EXPORT
+# define EXPORT DLLEXPORT
+#endif
+
/*
* NSUBEXP must be at least 10, and no greater than 117 or the parser
* will not work properly.
@@ -37,4 +42,7 @@ EXTERN void TclRegSub _ANSI_ARGS_((regexp *prog, char *source, char *dest));
EXTERN void TclRegError _ANSI_ARGS_((char *msg));
EXTERN char *TclGetRegError _ANSI_ARGS_((void));
+#undef EXPORT
+#define EXPORT DLLIMPORT
+
#endif /* REGEXP */