Changeset 68 for cpp/gdk/nonstd_io.h
- Timestamp:
- 01/31/11 23:18:54 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/gdk/nonstd_io.h
r66 r68 1 1 // int access(const char *pathname, int mode); 2 2 3 #ifdef _Windows 4 5 6 #ifndef _MSC_VER 3 7 #include <dir.h> 4 #include <io.h> //include io.h przed dir.h powoduje ze w simul.h nie poznaje klasy SimWorld - szokujacy i niewyjasniony blad. co wiecej w projekcie GUI go nie ma a w CLI jest - moze wplyw tych globalnych definicji typu NOVCL, NO_STRICT itp? 8 #endif 9 #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.? 5 10 #define makeDirectory(name) mkdir(name) 11 12 6 13 #else 14 15 7 16 #include <unistd.h> 8 17 #include <sys/stat.h> 9 18 #define makeDirectory(name) mkdir(name,0777) 19 10 20 #endif 11
Note: See TracChangeset
for help on using the changeset viewer.