Changeset 201 for cpp/common
- Timestamp:
- 03/31/14 23:22:29 (11 years ago)
- Location:
- cpp/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/nonstd_stdio.cpp
r197 r201 4 4 5 5 #include "nonstd_stdio.h" 6 #include "nonstd.h" 7 6 8 #if defined _WIN32 && !defined SHP 7 //tu nie trzeba includów zeby dzialal unlink() 9 //<unistd.h> not needed for unlink() 10 #include "Shlwapi.h" //PathIsRelative() 11 #include "Util.h" //strTOwstr() 8 12 #else 9 #include <unistd.h> 10 #endif 11 #include "nonstd.h" 13 #include <unistd.h> 14 #endif 12 15 13 16 bool fileExists(const char* path) … … 25 28 } 26 29 30 bool isAbsolutePath(const char* fname) 31 { 32 if (fname == NULL) return false; //SplitFileSystem never passes NULL but this function is public so we never know 33 #if defined _WIN32 && !defined SHP 34 return PathIsRelative(Util::strTOwstr(fname).c_str()) == TRUE; //http://msdn.microsoft.com/en-us/library/bb773660%28v=vs.85%29.aspx 35 #else 36 return fname[0] == PATH_SEPARATOR_CHAR; 37 #endif 38 } 27 39 28 40 #if defined SHP && defined BADA_API_1 -
cpp/common/nonstd_stdio.h
r197 r201 8 8 bool fileExists(const char* path); 9 9 bool removeFile(const char* path); 10 bool isAbsolutePath(const char* fname); 10 11 11 12 #ifdef _WIN32
Note: See TracChangeset
for help on using the changeset viewer.