Ticket #8670: patch-machine.h.diff
File patch-machine.h.diff, 1.0 KB (added by cssdev@…, 19 years ago) |
---|
-
lib/database/include/machine.h
old new 157 157 158 158 #ifdef __APPLE__ 159 159 160 #ifdef __LITTLE_ENDIAN__ 161 #define MACHINE_WORD_FORMAT DGL_LITTLE_ENDIAN 162 #define MACHINE_FLOAT_FORMAT DGL_NON_IEEE 163 #else /* __LITTLE_ENDIAN */ 160 164 #define MACHINE_WORD_FORMAT DGL_BIG_ENDIAN 161 165 #define MACHINE_FLOAT_FORMAT DGL_BIG_IEEE 166 #endif /* __LITTLE_ENDIAN */ 162 167 163 168 #endif /* __APPLE__ */ 164 169 … … 321 326 */ 322 327 323 328 #if MACHINE_FLOAT_FORMAT == DGL_NON_IEEE 324 #if __i386__ || __ia64__ 329 #if __i386__ || __ia64__ || (__APPLE__ && __LITTLE_ENDIAN__) 325 330 void mem_hton_float(float *t, float *f); 326 331 void mem_ntoh_float(float *t, float *f); 327 332 void mem_hton_double(double *t, double *f); 328 333 void mem_ntoh_double(double *t, double *f); 329 #endif /* __i386__ || __ia64__ */334 #endif /* __i386__ || __ia64__ || (__APPLE__ && __LITTLE_ENDIAN__) */ 330 335 #define DGL_HTON_FLOAT(t,f) mem_hton_float(&t,&f) 331 336 #define DGL_NTOH_FLOAT(t,f) mem_ntoh_float(&t,&f) 332 337 #define DGL_HTON_DOUBLE(t,f) mem_hton_double(&t,&f)