summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/Configure.h.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-07-26 15:34:57 (GMT)
committerBrad King <brad.king@kitware.com>2005-07-26 15:34:57 (GMT)
commitb9d472d81dd5c2e12583aa0a8447e9eaa2d8ed50 (patch)
tree0c4b626230e4417cafd69c123c68a03bb31ff0c6 /Source/kwsys/Configure.h.in
parent5b26fefd60eb9ca6b1ee351fe4e17e12eb0ec19d (diff)
downloadCMake-b9d472d81dd5c2e12583aa0a8447e9eaa2d8ed50.zip
CMake-b9d472d81dd5c2e12583aa0a8447e9eaa2d8ed50.tar.gz
CMake-b9d472d81dd5c2e12583aa0a8447e9eaa2d8ed50.tar.bz2
ENH: Moved kwsys_ns and kwsysEXPORT macros to Configure.h in the case of building a kwsys source file. This allows more than one header to be included in a kwsys source file without redefining the macros.
Diffstat (limited to 'Source/kwsys/Configure.h.in')
-rw-r--r--Source/kwsys/Configure.h.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/kwsys/Configure.h.in b/Source/kwsys/Configure.h.in
index 4783b56..744e884 100644
--- a/Source/kwsys/Configure.h.in
+++ b/Source/kwsys/Configure.h.in
@@ -14,6 +14,14 @@
#ifndef @KWSYS_NAMESPACE@_Configure_h
#define @KWSYS_NAMESPACE@_Configure_h
+/* If we are building a kwsys .c or .cxx file, let it use the kwsys
+ namespace. When not building a kwsys source file these macros are
+ temporarily defined inside the headers that use them. */
+#if defined(KWSYS_NAMESPACE)
+# define kwsys_ns(x) @KWSYS_NAMESPACE@##x
+# define kwsysEXPORT @KWSYS_NAMESPACE@_EXPORT
+#endif
+
/* Setup the export macro. */
#if defined(_WIN32) && @KWSYS_BUILD_SHARED@
# if defined(@KWSYS_NAMESPACE@_EXPORTS)