diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-23 22:01:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-23 22:01:44 +0300 |
commit | 3c404128c4669a1f4f190e20a89553677717fc50 (patch) | |
tree | 2db4e5031089c800c4e00fd6244e578f44a7c910 /src/utils/files.cpp | |
parent | 89b267d6d73bbc59f7c313b8a22b97fbb27f99a8 (diff) | |
download | ManaVerse-3c404128c4669a1f4f190e20a89553677717fc50.tar.gz ManaVerse-3c404128c4669a1f4f190e20a89553677717fc50.tar.bz2 ManaVerse-3c404128c4669a1f4f190e20a89553677717fc50.tar.xz ManaVerse-3c404128c4669a1f4f190e20a89553677717fc50.zip |
Add missing comments into defines.
Diffstat (limited to 'src/utils/files.cpp')
-rw-r--r-- | src/utils/files.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/utils/files.cpp b/src/utils/files.cpp index 6f7ae3147..1aa0e245c 100644 --- a/src/utils/files.cpp +++ b/src/utils/files.cpp @@ -26,7 +26,7 @@ #include "resources/resourcemanager/resourcemanager.h" #include "utils/mkdir.h" -#endif +#endif // defined(ANDROID) || defined(__native_client__) #include "utils/mkdir.h" #include "utils/paths.h" @@ -77,7 +77,8 @@ namespace { #ifdef ANDROID int mFilesCount = 0; -#endif +#endif // ANDROID + Files::CopyFileCallbackPtr mCallbackPtr = nullptr; } // namespace @@ -101,7 +102,7 @@ void Files::copyPhysFsFile(const std::string &restrict inFile, mCallbackPtr(mFilesCount); mFilesCount ++; } -#endif +#endif // ANDROID } void Files::copyPhysFsDir(const std::string &restrict inDir, @@ -169,9 +170,10 @@ int Files::renameFile(const std::string &restrict srcName, return 0; return -1; -#else +#else // defined __native_client__ + return ::rename(srcName.c_str(), dstName.c_str()); -#endif +#endif // defined __native_client__ } int Files::copyFile(const std::string &restrict srcName, @@ -265,7 +267,7 @@ std::string Files::getPath(const std::string &file) std::string dataZip = "/http/data.zip/"; if (path.substr(0, dataZip.length()) == dataZip) path = path.replace(0, dataZip.length(), "/http/data/"); -#endif +#endif // defined __native_client__ } else { |