diff options
author | Brad King <brad.king@kitware.com> | 2005-07-26 15:34:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-07-26 15:34:57 (GMT) |
commit | b9d472d81dd5c2e12583aa0a8447e9eaa2d8ed50 (patch) | |
tree | 0c4b626230e4417cafd69c123c68a03bb31ff0c6 /Source/kwsys/Process.h.in | |
parent | 5b26fefd60eb9ca6b1ee351fe4e17e12eb0ec19d (diff) | |
download | CMake-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/Process.h.in')
-rw-r--r-- | Source/kwsys/Process.h.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/kwsys/Process.h.in b/Source/kwsys/Process.h.in index 26779d7..96d3225 100644 --- a/Source/kwsys/Process.h.in +++ b/Source/kwsys/Process.h.in @@ -20,8 +20,10 @@ namespace. These macros are used internally to kwsys only, and are not visible to user code. Use kwsysHeaderDump.pl to reproduce these macros after making changes to the interface. */ -#define kwsys_ns(x) @KWSYS_NAMESPACE@##x -#define kwsysEXPORT @KWSYS_NAMESPACE@_EXPORT +#if !defined(KWSYS_NAMESPACE) +# define kwsys_ns(x) @KWSYS_NAMESPACE@##x +# define kwsysEXPORT @KWSYS_NAMESPACE@_EXPORT +#endif #define kwsysProcess kwsys_ns(Process) #define kwsysProcess_s kwsys_ns(Process_s) #define kwsysProcess_New kwsys_ns(Process_New) |