diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-11-04 21:50:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-11-04 22:20:41 +0300 |
commit | 57cb5102b2fd47fed46bd85ab07e0135e19dd484 (patch) | |
tree | f3f6a0d888611120fcf28c3d57413d71a0b9357c /src/utils/files.h | |
parent | 3bd429f0ce19526b6b34a2c27d2d3085f012e192 (diff) | |
download | plus-57cb5102b2fd47fed46bd85ab07e0135e19dd484.tar.gz plus-57cb5102b2fd47fed46bd85ab07e0135e19dd484.tar.bz2 plus-57cb5102b2fd47fed46bd85ab07e0135e19dd484.tar.xz plus-57cb5102b2fd47fed46bd85ab07e0135e19dd484.zip |
improve renameFile function.
add test for this function.
Diffstat (limited to 'src/utils/files.h')
-rw-r--r-- | src/utils/files.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/files.h b/src/utils/files.h index 4a44631cf..735812563 100644 --- a/src/utils/files.h +++ b/src/utils/files.h @@ -21,7 +21,6 @@ #ifndef UTILS_FILES_H #define UTILS_FILES_H -#if defined(ANDROID) || defined(__native_client__) #include <string> namespace Files @@ -29,15 +28,17 @@ namespace Files #ifdef ANDROID void extractLocale(); #endif + +#if defined(ANDROID) || defined(__native_client__) void copyPhysFsFile(const std::string &inFile, const std::string &outFile); void copyPhysFsDir(const std::string &inDir, const std::string &outDir); void extractZip(const std::string &zipName, const std::string &inDir, const std::string &outDir); +#endif // ANDROID __native_client__ int renameFile(const std::string &pFrom, const std::string &pTo); } // namespace Files -#endif // ANDROID __native_client__ #endif // UTILS_FILES_H |