Changeset 1150
- Timestamp:
- 2000-05-04T20:32:31+12:00 (24 years ago)
- Location:
- trunk/gsdl
- Files:
-
- 2 added
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/lib/fileutil.cpp
r1076 r1150 28 28 /* 29 29 $Log$ 30 Revision 1.15 2000/05/04 08:27:28 sjboddie 31 modifications for windows ports of GCC 32 30 33 Revision 1.14 2000/04/06 19:57:59 cs025 31 34 Correcting a correction - reinstated all lib files due to silly … … 168 171 } 169 172 170 #if defined __WIN32__173 #if defined(__WIN32__) && !defined(__GNUC__) 171 174 172 175 #include <windows.h> 173 176 174 BOOLread_dir (const text_t &dirname, text_tarray &filelist) {177 bool read_dir (const text_t &dirname, text_tarray &filelist) { 175 178 176 179 WIN32_FIND_DATA FileData; 177 180 HANDLE hSearch; 178 DWORD dwAttrs;179 181 char *dirpath = dirname.getcstr(); 180 182 strcat (dirpath, "\\*"); 181 182 BOOL finished = false;183 183 184 184 hSearch = FindFirstFile(dirpath, &FileData); -
trunk/gsdl/lib/gsdlconf.h
r1076 r1150 30 30 #define GSDLCONF_H 31 31 32 #ifndef __WIN32__ 32 #if defined(__WIN32__) 33 #include "../win32cfg.h" 34 #else 33 35 #include "../config.h" 34 36 #endif … … 84 86 #include <io.h> 85 87 #include <sys/locking.h> 88 #if defined(__GNUC__) 89 #define GSDL_GET_FILEDESC(str) str.filedesc() 90 #else 86 91 #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) 88 94 #define GSDL_LOCK_FILE(fd) lock_val = _locking(fd, LK_NBLCK, 200) 89 95 -
trunk/gsdl/packages/mg/sysfuncs.h
r821 r1150 194 194 195 195 /* On MSDOS, there are missing things from <sys/stat.h>. */ 196 #if def __MSDOS__196 #if defined(__MSDOS__) 197 197 #define S_ISUID 0 198 198 #define S_ISGID 0 199 199 #define S_ISVTX 0 200 #endif 201 202 #if defined(__GNUC__) && defined(__WIN32__) 203 #include <limits.h> 200 204 #endif 201 205
Note:
See TracChangeset
for help on using the changeset viewer.