Changeset 7
- Timestamp:
- 12/02/98 14:32:48 (10 years ago)
- Files:
-
- trunk/port/gdal_port.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/port/gdal_port.h
r3 r7 39 39 * 40 40 * $Log$ 41 * Revision 1.2 1998/12/02 19:32:48 warmerda 42 * Added some new definitions. 43 * 41 44 * Revision 1.1 1998/10/18 06:15:11 warmerda 42 45 * Initial implementation. … … 69 72 #include <math.h> 70 73 #include <stdarg.h> 74 #include <string.h> 71 75 72 76 /* ==================================================================== */ … … 89 93 #endif 90 94 95 #ifndef FALSE 96 # define FALSE 0 97 #endif 98 99 #ifndef TRUE 100 # define TRUE 1 101 #endif 102 103 #ifndef MAX 104 # define MIN(a,b) ((a<b) ? a : b) 105 # define MAX(a,b) ((a>b) ? a : b) 106 #endif 107 108 #ifndef ABS 109 # define ABS(x) ((x<0) ? (-1*(x)) : x) 110 #endif 111 112 #ifndef EQUAL 113 # define EQUALN(a,b,n) (strncasecmp(a,b,n)==0) 114 # define EQUAL(a,b) (strcasecmp(a,b)==0) 115 #endif 116 91 117 /* ==================================================================== */ 92 118 /* Error handling. */ … … 107 133 GBSErr GDAL_DLL GBSGetError( char ** ); 108 134 135 void GDAL_DLL _GBSAssert( const char *, const char *, int ); 136 137 #ifdef DEBUG 138 # define GBSAssert(expr) ((expr) ? (0) : _GBSAssert(#expr,__FILE__,__LINE__)) 139 #else 140 # define GBSAssert(expr) 141 #endif 142 109 143 GDAL_C_END 110 144
