diff options
author | Brad King <brad.king@kitware.com> | 2014-08-04 14:16:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-08-04 14:16:34 (GMT) |
commit | 60c783676c91ff1ded2ed5e6fd50d0f9664032e5 (patch) | |
tree | 02f4932329dbe4777918ce1d9f94307be9c3e414 /Source/kwsys/Directory.hxx.in | |
parent | ba60ff99ed2ea35f8b8c24bc566b6f60d51fce53 (diff) | |
parent | 158c6d1cffe863fde284d4e5eeeb8129d40ce0e9 (diff) | |
download | CMake-60c783676c91ff1ded2ed5e6fd50d0f9664032e5.zip CMake-60c783676c91ff1ded2ed5e6fd50d0f9664032e5.tar.gz CMake-60c783676c91ff1ded2ed5e6fd50d0f9664032e5.tar.bz2 |
Merge branch 'upstream-kwsys' into update-kwsys
Diffstat (limited to 'Source/kwsys/Directory.hxx.in')
-rw-r--r-- | Source/kwsys/Directory.hxx.in | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/Source/kwsys/Directory.hxx.in b/Source/kwsys/Directory.hxx.in index 05217c4..0acb191 100644 --- a/Source/kwsys/Directory.hxx.in +++ b/Source/kwsys/Directory.hxx.in @@ -13,6 +13,13 @@ #define @KWSYS_NAMESPACE@_Directory_hxx #include <@KWSYS_NAMESPACE@/Configure.h> +#include <@KWSYS_NAMESPACE@/stl/string> + +/* Define these macros temporarily to keep the code readable. */ +#if !defined (KWSYS_NAMESPACE) && !@KWSYS_NAMESPACE@_NAME_IS_KWSYS +# define kwsys_stl @KWSYS_NAMESPACE@_stl +# define kwsys_ios @KWSYS_NAMESPACE@_ios +#endif namespace @KWSYS_NAMESPACE@ { @@ -38,7 +45,7 @@ public: * in that directory. 0 is returned if the directory can not be * opened, 1 if it is opened. */ - bool Load(const char*); + bool Load(const kwsys_stl::string&); /** * Return the number of files in the current directory. @@ -49,7 +56,7 @@ public: * Return the number of files in the specified directory. * A higher performance static method. */ - static unsigned long GetNumberOfFilesInDirectory(const char*); + static unsigned long GetNumberOfFilesInDirectory(const kwsys_stl::string&); /** * Return the file at the given index, the indexing is 0 based @@ -77,4 +84,10 @@ private: } // namespace @KWSYS_NAMESPACE@ +/* Undefine temporary macros. */ +#if !defined (KWSYS_NAMESPACE) && !@KWSYS_NAMESPACE@_NAME_IS_KWSYS +# undef kwsys_stl +# undef kwsys_ios +#endif + #endif |