Changeset 3009
- Timestamp:
- 2002-02-27T11:56:15+13:00 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/lib/gsdlconf.h
r2935 r3009 47 47 // GSDL_USE_IOS_H should be defined if the .h extension needs to 48 48 // be used for the io stream headers 49 #if defined(__GNUG__) || defined(__IBMCPP__)49 #if (defined(__GNUG__) && __GNUG__ + 0 < 3) || defined(__IBMCPP__) 50 50 # define GSDL_USE_IOS_H 1 51 51 #endif … … 65 65 // GSDL_NAMESPACE_BROKEN should be defined if namespaces should 66 66 // not be used 67 #if defined(__GNUG__) || defined(__IBMCPP__)67 #if (defined(__GNUG__) && __GNUG__ + 0 < 3) || defined(__IBMCPP__) 68 68 # define GSDL_NAMESPACE_BROKEN 1 69 69 #endif … … 104 104 #include <sys/locking.h> 105 105 106 #if defined(__GNUC__) 106 #if defined(__GNUC__) /* not gcc >= 3 - this has GSDL_USE_IOS_H */ 107 107 #define GSDL_GET_FILEDESC(str) str.filedesc() 108 108 #else … … 113 113 #define GSDL_LOCK_FILE(fd) lock_val = _locking(fd, LK_NBLCK, 200) 114 114 115 #else /* ifdef GSDL_ SE_IOS_H */115 #else /* ifdef GSDL_USE_IOS_H */ 116 116 117 117 // when using <fstream> (i.e. VC++ 6.0) I can't work out how … … 151 151 #define GSDL_LOCK_FILE(fd) lock_val = flock (fd, LOCK_EX + LOCK_NB) 152 152 153 #else 153 #else /* ! GSDL_USE_FLOCK */ 154 154 // use fcntl 155 155 #include <fcntl.h>
Note:
See TracChangeset
for help on using the changeset viewer.