Changeset 68 for cpp/gdk/nonstd_io.h


Ignore:
Timestamp:
01/31/11 23:18:54 (14 years ago)
Author:
Maciej Komosinski
Message:

added missing sources; updated sources for compatibility with vs2008 and added project files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/gdk/nonstd_io.h

    r66 r68  
    11// int access(const char *pathname, int mode);
     2
    23#ifdef _Windows
     4
     5
     6#ifndef _MSC_VER
    37 #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.?
    510 #define makeDirectory(name) mkdir(name)
     11
     12
    613#else
     14
     15
    716 #include <unistd.h>
    817 #include <sys/stat.h>
    918 #define makeDirectory(name) mkdir(name,0777)
     19
    1020#endif
    11 
Note: See TracChangeset for help on using the changeset viewer.