- Timestamp:
- 2002-06-17T21:20:27+12:00 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/lib/gsdlconf.h
r3052 r3155 100 100 #endif 101 101 102 #if defined (GSDL_USE_IOS_H)103 102 #include <io.h> 104 103 #include <sys/locking.h> 105 106 #if defined(__GNUC__) /* not gcc >= 3 - this has GSDL_USE_IOS_H */107 #define GSDL_GET_FILEDESC(str) str.filedesc()108 #else109 #define GSDL_GET_FILEDESC(str) str.fd()110 #endif111 104 112 105 #define GSDL_UNLOCK_FILE(fd) _locking(fd, LK_UNLCK, 200) 113 106 #define GSDL_LOCK_FILE(fd) lock_val = _locking(fd, LK_NBLCK, 200) 114 107 115 #else /* ifdef GSDL_USE_IOS_H */116 117 // when using <fstream> (i.e. VC++ 6.0) I can't work out how118 // to return a filedesc. File locking won't currently work119 // for those windows compilers requiring GSDL_USE_IOS_H to120 // not be set -- Stefan.121 #define GSDL_GET_FILEDESC(str) 1122 #define GSDL_LOCK_FILE(fd) lock_val = 0123 #define GSDL_UNLOCK_FILE(fd) 0124 #endif125 126 108 #else /* not WIN32 */ 127 // darwin (Mac OS X) requires _STREAM_COMPAT to be set when128 // including <fstream.h> for filedesc() to be declared...129 #define GSDL_GET_FILEDESC(str) str.filedesc()130 109 131 110 #if GSDL_USE_FLOCK
Note:
See TracChangeset
for help on using the changeset viewer.