root/jlog_config.h

Revision 81ac86a15e3940ff0b787698853fb6a6157f800b, 2.8 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 7 years ago)

initial import with Ecelerity bits removed and some autoconf glue added in. Could certainly use some work on the build/install. Needs shared lib support for multiple platforms

  • Property mode set to 100644
Line 
1 /* jlog_config.h.  Generated by configure.  */
2 #ifndef __JLOG_CONFIG_H
3 #define __JLOG_CONFIG_H
4
5 /* define inline unless that is what the compiler already calls it. */
6 /* #undef inline */
7
8 #define HAVE_FCNTL_H 1
9 #define HAVE_SYS_TYPES_H 1
10 #define HAVE_DIRENT_H 1
11 #define HAVE_ERRNO_H 1
12 #define HAVE_STRING_H 1
13 #define HAVE_STDLIB_H 1
14 #define HAVE_SYS_PARAM_H 1
15 #define HAVE_TIME_H 1
16 #define HAVE_SYS_STAT_H 1
17 #define IFS_CH '/'
18
19 #ifdef HAVE_STRING_H
20 #include <string.h>
21 #endif
22 #ifdef HAVE_STDLIB_H
23 #include <stdlib.h>
24 #endif
25 #ifdef HAVE_SYS_PARAM_H
26 #include <sys/param.h>
27 #endif
28 #ifdef HAVE_SYS_TYPES_H
29 #include <sys/types.h>
30 #endif
31 #ifdef HAVE_SYS_STAT_H
32 #include <sys/stat.h>
33 #endif
34
35 /* The number of bytes in a char.  */
36 #define SIZEOF_CHAR 1
37
38 /* The number of bytes in a int.  */
39 #define SIZEOF_INT 4
40
41 /* The number of bytes in a size_t.  */
42 /* #undef SIZEOF_SIZE_T */
43
44
45 /* The number of bytes in a long int.  */
46 #define SIZEOF_LONG_INT 4
47
48 /* The number of bytes in a long long int.  */
49 #define SIZEOF_LONG_LONG_INT 8
50
51 /* The number of bytes in a short int.  */
52 #define SIZEOF_SHORT_INT 2
53
54 /* The number of bytes in a void *.  */
55 #define SIZEOF_VOID_P 4
56
57 #ifndef HAVE_U_INT
58 typedef unsigned int u_int;
59 #endif
60
61 #define HAVE_INTXX_T 1
62 #ifndef HAVE_INTXX_T
63 #if (SIZEOF_CHAR == 1)
64 typedef char int8_t;
65 #else
66 #error "8 bit int type not found."
67 #endif
68 #if (SIZEOF_SHORT_INT == 2)
69 typedef short int int16_t;
70 #else
71 #ifdef _CRAY
72 typedef long int16_t;
73 #else
74 #warning "16 bit int type not found."
75 #endif /* _CRAY */
76 #endif
77 #if (SIZEOF_INT == 4)
78 typedef int int32_t;
79 #else
80 #ifdef _CRAY
81 typedef long int32_t;
82 #else
83 #error "32 bit int type not found."
84 #endif /* _CRAY */
85 #endif
86 #endif
87
88 /* If sys/types.h does not supply u_intXX_t, supply them ourselves */
89 #ifndef HAVE_U_INTXX_T
90 #ifdef HAVE_UINTXX_T
91 typedef uint8_t u_int8_t;
92 typedef uint16_t u_int16_t;
93 typedef uint32_t u_int32_t;
94 #define HAVE_U_INTXX_T 1
95 #else
96 #if (SIZEOF_CHAR == 1)
97 typedef unsigned char u_int8_t;
98 #else
99 #error "8 bit int type not found."
100 #endif
101 #if (SIZEOF_SHORT_INT == 2)
102 typedef unsigned short int u_int16_t;
103 #else
104 #ifdef _CRAY
105 typedef unsigned long u_int16_t;
106 #else
107 #warning "16 bit int type not found."
108 #endif
109 #endif
110 #if (SIZEOF_INT == 4)
111 typedef unsigned int u_int32_t;
112 #else
113 #ifdef _CRAY
114 typedef unsigned long u_int32_t;
115 #else
116 #error "32 bit int type not found."
117 #endif
118 #endif
119 #endif
120 #endif
121
122 /* 64-bit types */
123 #ifndef HAVE_INT64_T
124 #if (SIZEOF_LONG_INT == 8)
125 typedef long int int64_t;
126 #define HAVE_INT64_T 1
127 #else
128 #if (SIZEOF_LONG_LONG_INT == 8)
129 typedef long long int int64_t;
130 #define HAVE_INT64_T 1
131 #define HAVE_LONG_LONG_INT
132 #endif
133 #endif
134 #endif
135 #ifndef HAVE_U_INT64_T
136 #if (SIZEOF_LONG_INT == 8)
137 typedef unsigned long int u_int64_t;
138 #define HAVE_U_INT64_T 1
139 #else
140 #if (SIZEOF_LONG_LONG_INT == 8)
141 typedef unsigned long long int u_int64_t;
142 #define HAVE_U_INT64_T 1
143 #endif
144 #endif
145 #endif
146
147 #endif
Note: See TracBrowser for help on using the browser.