summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.hxx.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-11-01 12:38:26 (GMT)
committerBrad King <brad.king@kitware.com>2017-11-01 12:38:26 (GMT)
commit7576e9f8a30bb50a3157fe5e3ec493be8a9299bc (patch)
treec8c2103ad5b5c2e0c30f3233d04153e3586601a1 /Source/kwsys/SystemTools.hxx.in
parenta57bad6c3d0dbc885bb71dfe465d09a380c35960 (diff)
parent7d3f33e6129232a6814af47a19a72fd500414508 (diff)
downloadCMake-7576e9f8a30bb50a3157fe5e3ec493be8a9299bc.zip
CMake-7576e9f8a30bb50a3157fe5e3ec493be8a9299bc.tar.gz
CMake-7576e9f8a30bb50a3157fe5e3ec493be8a9299bc.tar.bz2
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys: KWSys 2017-11-01 (6ffca34c)
Diffstat (limited to 'Source/kwsys/SystemTools.hxx.in')
-rw-r--r--Source/kwsys/SystemTools.hxx.in18
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/kwsys/SystemTools.hxx.in b/Source/kwsys/SystemTools.hxx.in
index 35bc1b1..3d109a8 100644
--- a/Source/kwsys/SystemTools.hxx.in
+++ b/Source/kwsys/SystemTools.hxx.in
@@ -553,13 +553,20 @@ public:
*/
static FILE* Fopen(const std::string& file, const char* mode);
+/**
+ * Visual C++ does not define mode_t (note that Borland does, however).
+ */
+#if defined(_MSC_VER)
+ typedef unsigned short mode_t;
+#endif
+
/**
* Make a new directory if it is not there. This function
* can make a full path even if none of the directories existed
* prior to calling this function.
*/
- static bool MakeDirectory(const char* path);
- static bool MakeDirectory(const std::string& path);
+ static bool MakeDirectory(const char* path, const mode_t* mode = 0);
+ static bool MakeDirectory(const std::string& path, const mode_t* mode = 0);
/**
* Copy the source file to the destination file only
@@ -749,13 +756,6 @@ public:
*/
static long int CreationTime(const std::string& filename);
-/**
- * Visual C++ does not define mode_t (note that Borland does, however).
- */
-#if defined(_MSC_VER)
- typedef unsigned short mode_t;
-#endif
-
/**
* Get and set permissions of the file. If honor_umask is set, the umask
* is queried and applied to the given permissions. Returns false if