Ignore:
Timestamp:
2000-05-04T20:32:31+12:00 (24 years ago)
Author:
sjboddie
Message:

modifications for windows ports of GCC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/lib/gsdlconf.h

    r1076 r1150  
    3030#define GSDLCONF_H
    3131
    32 #ifndef __WIN32__
     32#if defined(__WIN32__)
     33#include "../win32cfg.h"
     34#else
    3335#include "../config.h"
    3436#endif
     
    8486#include <io.h>
    8587#include <sys/locking.h>
     88#if defined(__GNUC__)
     89#define GSDL_GET_FILEDESC(str) str.filedesc()
     90#else
    8691#define GSDL_GET_FILEDESC(str) str.fd()
    87 #define GSDL_UNLOCK_FILE(fd) _locking(fd, LK_UNLCK, 200)
     92#endif
     93#define GSDL_UNLOCK_FILE(fd) _locking(fd, LK_UNLOCK, 200)
    8894#define GSDL_LOCK_FILE(fd) lock_val = _locking(fd, LK_NBLCK, 200)
    8995
Note: See TracChangeset for help on using the changeset viewer.