diff options
author | Brad King <brad.king@kitware.com> | 2003-06-19 22:57:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-06-19 22:57:11 (GMT) |
commit | c21ad6298731ae7d1d7534ad9dc078fee5884dab (patch) | |
tree | 4a7773aa3569eaae11bae0bf4f97ee051ec2c1b7 /Source/kwsys/RegularExpression.hxx.in | |
parent | caeada7f274368c175f8b3e9c2c6b20017a41918 (diff) | |
download | CMake-c21ad6298731ae7d1d7534ad9dc078fee5884dab.zip CMake-c21ad6298731ae7d1d7534ad9dc078fee5884dab.tar.gz CMake-c21ad6298731ae7d1d7534ad9dc078fee5884dab.tar.bz2 |
ENH: Added full configuration of namespace even for Configure.hxx macro definitions.
Diffstat (limited to 'Source/kwsys/RegularExpression.hxx.in')
-rw-r--r-- | Source/kwsys/RegularExpression.hxx.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/kwsys/RegularExpression.hxx.in b/Source/kwsys/RegularExpression.hxx.in index 4b7698c..f00c32e 100644 --- a/Source/kwsys/RegularExpression.hxx.in +++ b/Source/kwsys/RegularExpression.hxx.in @@ -39,6 +39,11 @@ #include <@KWSYS_NAMESPACE@/std/string> +/* Define this macro temporarily to keep the code readable. */ +#if !defined (KWSYS_NAMESPACE) && !defined(@KWSYS_NAMESPACE@_NAME_IS_KWSYS) +# define kwsys_std @KWSYS_NAMESPACE@_std +#endif + namespace @KWSYS_NAMESPACE@ { @@ -382,4 +387,9 @@ inline kwsys_std::string RegularExpression::match(int n) const } // namespace @KWSYS_NAMESPACE@ +/* Undefine temporary macro. */ +#if !defined (KWSYS_NAMESPACE) && !defined(@KWSYS_NAMESPACE@_NAME_IS_KWSYS) +# undef kwsys_std +#endif + #endif |