comparison src/database.c @ 3739:6d4dc9ec7240

[xemacs-hg @ 2006-12-11 19:43:57 by aidan] Check for the various u*_t types in configure, use those definitions in C.
author aidan
date Mon, 11 Dec 2006 19:44:56 +0000
parents 4c038e89d563
children 9a633a00c3f2
comparison
equal deleted inserted replaced
3738:23dd32cedb6a 3739:6d4dc9ec7240
43 slightly differently in the not quite yet standard <inttypes.h>. 43 slightly differently in the not quite yet standard <inttypes.h>.
44 See db.h for details of why we're resorting to this... */ 44 See db.h for details of why we're resorting to this... */
45 /* glibc 2.1 doesn't have this problem with DB 2.x */ 45 /* glibc 2.1 doesn't have this problem with DB 2.x */
46 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) 46 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
47 #ifdef HAVE_INTTYPES_H 47 #ifdef HAVE_INTTYPES_H
48 #ifndef __BIT_TYPES_DEFINED__
48 #define __BIT_TYPES_DEFINED__ 49 #define __BIT_TYPES_DEFINED__
50 #endif
49 #include <inttypes.h> 51 #include <inttypes.h>
50 #if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__APPLE__) 52 #if !HAVE_U_INT8_T
51 typedef uint8_t u_int8_t; 53 typedef uint8_t u_int8_t;
54 #endif
55 #if !HAVE_U_INT16_T
52 typedef uint16_t u_int16_t; 56 typedef uint16_t u_int16_t;
57 #endif
58 #if !HAVE_U_INT32_T
53 typedef uint32_t u_int32_t; 59 typedef uint32_t u_int32_t;
60 #endif
54 #ifdef WE_DONT_NEED_QUADS 61 #ifdef WE_DONT_NEED_QUADS
62 #if !HAVE_U_INT64_T
55 typedef uint64_t u_int64_t; 63 typedef uint64_t u_int64_t;
64 #endif
56 #endif /* WE_DONT_NEED_QUADS */ 65 #endif /* WE_DONT_NEED_QUADS */
57 #endif /* __FreeBSD__ */
58 #endif /* HAVE_INTTYPES_H */ 66 #endif /* HAVE_INTTYPES_H */
59 #endif /* !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) */ 67 #endif /* !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) */
60 /* Berkeley DB wants __STDC__ to be defined; else if does `#define const' */ 68 /* Berkeley DB wants __STDC__ to be defined; else if does `#define const' */
61 #if ! defined (__STDC__) && ! defined(__cplusplus) 69 #if ! defined (__STDC__) && ! defined(__cplusplus)
62 #define __STDC__ 0 70 #define __STDC__ 0