Changeset 247 for cpp/common/nonstd_stdio.h
- Timestamp:
- 11/07/14 17:51:01 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/nonstd_stdio.h
r227 r247 7 7 8 8 bool fileExists(const char* path); 9 bool directoryExists(const char* path); 10 bool makeDirectory(const char* path); 11 bool makeDirectories(const char* path); 9 12 bool removeFile(const char* path); 10 13 bool isAbsolutePath(const char* fname); 14 int getFileSize(const char* path); 11 15 12 16 #ifdef _WIN32 … … 24 28 #ifndef MOBILE2D 25 29 #include <io.h> //borland compiler: include <io.h> before <dir.h> causes the SimWorld class in "simul.h" be unrecognized, for unknown reason :O moreover, this problem is only pertinent to the CLI project, not GUI. Maybe this is caused by global defines like NOVCL, NO_STRICT etc.? 26 #define makeDirectory(name) mkdir(name) 30 // #define makeDirectory(name) mkdir(name) 27 31 #endif 28 32 33 #define S_ISDIR(x) ((x & _S_IFDIR)==_S_IFDIR) 29 34 30 35 #else … … 32 37 #include <unistd.h> 33 38 #include <sys/stat.h> 34 #define makeDirectory(name) mkdir(name,0777)39 // #define makeDirectory(name) mkdir(name,0777) 35 40 #define _unlink unlink //_unlink jest ISO-conformant, unlink jest POSIX-deprecated 36 41 #define _stat stat 37 42 #endif 38 43 … … 95 100 #endif 96 101 102 int getFileSize(MFILE *f); 103 97 104 #endif
Note: See TracChangeset
for help on using the changeset viewer.