summaryrefslogtreecommitdiffstats
path: root/generic/tclInt.h
diff options
context:
space:
mode:
authorpooryorick <com.digitalsmarties@pooryorick.com>2018-08-14 05:43:17 (GMT)
committerpooryorick <com.digitalsmarties@pooryorick.com>2018-08-14 05:43:17 (GMT)
commite5270637c01b6fbb0f016048fc9d9735f980421a (patch)
tree9631ec3dc4322954ff7290f949715882e06d9f5e /generic/tclInt.h
parent65f3d0f56b15027c05f27fe112dde1a6e22b03bb (diff)
downloadtcl-e5270637c01b6fbb0f016048fc9d9735f980421a.zip
tcl-e5270637c01b6fbb0f016048fc9d9735f980421a.tar.gz
tcl-e5270637c01b6fbb0f016048fc9d9735f980421a.tar.bz2
Reposition the MODULE_SCOPE definition so that packages like tbcload don't get
an error when they include tclPort.h.
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r--generic/tclInt.h30
1 files changed, 17 insertions, 13 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h
index 64e7c67..5379396 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -38,6 +38,23 @@
#define AVOID_HACKS_FOR_ITCL 1
+
+/*
+ * Used to tag functions that are only to be visible within the module being
+ * built and not outside it (where this is supported by the linker).
+ * Also used in the platform-specific *Port.h files.
+ */
+
+#ifndef MODULE_SCOPE
+# ifdef __cplusplus
+# define MODULE_SCOPE extern "C"
+# else
+# define MODULE_SCOPE extern
+# endif
+#endif
+
+
+
/*
* Common include files needed by most of the Tcl source files are included
* here, so that system-dependent personalizations for the include files only
@@ -95,19 +112,6 @@ typedef int ptrdiff_t;
#endif
/*
- * Used to tag functions that are only to be visible within the module being
- * built and not outside it (where this is supported by the linker).
- */
-
-#ifndef MODULE_SCOPE
-# ifdef __cplusplus
-# define MODULE_SCOPE extern "C"
-# else
-# define MODULE_SCOPE extern
-# endif
-#endif
-
-/*
* Macros used to cast between pointers and integers (e.g. when storing an int
* in ClientData), on 64-bit architectures they avoid gcc warning about "cast
* to/from pointer from/to integer of different size".