diff options
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 |