Show
Ignore:
Timestamp:
11/18/07 21:04:49 (1 year ago)
Author:
daboo
Message:

Win32 VCPP changes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Mulberry/branches/win32-merge-121/Plug-ins/Common/os_dep.h

    r18 r123  
    6060#endif 
    6161 
     62// How to include stat.h 
     63#if __dest_os == __mac_os 
     64#define OSSTAT stat 
     65#define OSSTATSTRUCT stat 
     66#define __stat_header <stat.h> 
     67#elif __dest_os == __win32_os 
     68#define OSSTAT _stat 
     69#define OSSTATSTRUCT _stat 
     70#define S_IRWXU 0x0e00 
     71#define S_ISDIR(m)      (((m)&(S_IFMT)) == (S_IFDIR)) 
     72#define S_ISREG(m)      (((m)&(S_IFMT)) == (S_IFREG)) 
     73#define __stat_header <sys/stat.h> 
     74#elif __dest_os == __linux_os || __dest_os == __mac_os_x 
     75#define OSSTAT stat 
     76#define OSSTATSTRUCT stat 
     77#define __stat_header <sys/stat.h> 
     78#else 
     79#error __dest_os 
     80#endif 
     81 
    6282// unichar_t support 
    6383#if __dest_os == __mac_os || __dest_os == __mac_os_x