source: cpp/gdk/nonstd_io.h @ 88

Last change on this file since 88 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
Line 
1// int access(const char *pathname, int mode);
2
3#ifdef _Windows
4
5
6#ifndef _MSC_VER
7 #include <dir.h>
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.?
10 #define makeDirectory(name) mkdir(name)
11
12
13#else
14
15
16 #include <unistd.h>
17 #include <sys/stat.h>
18 #define makeDirectory(name) mkdir(name,0777)
19
20#endif
Note: See TracBrowser for help on using the repository browser.