Last change
on this file since 100 was
68,
checked in by Maciej Komosinski, 14 years ago
|
added missing sources; updated sources for compatibility with vs2008 and added project files
|
-
Property svn:eol-style set to
native
|
File size:
541 bytes
|
Rev | Line | |
---|
[66] | 1 | // int access(const char *pathname, int mode); |
---|
[68] | 2 | |
---|
[66] | 3 | #ifdef _Windows |
---|
[68] | 4 | |
---|
| 5 | |
---|
| 6 | #ifndef _MSC_VER |
---|
[66] | 7 | #include <dir.h> |
---|
[68] | 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.? |
---|
[66] | 10 | #define makeDirectory(name) mkdir(name) |
---|
[68] | 11 | |
---|
| 12 | |
---|
[66] | 13 | #else |
---|
[68] | 14 | |
---|
| 15 | |
---|
[66] | 16 | #include <unistd.h> |
---|
| 17 | #include <sys/stat.h> |
---|
| 18 | #define makeDirectory(name) mkdir(name,0777) |
---|
[68] | 19 | |
---|
[66] | 20 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.