root/jlog_config.h.in

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

no functional changes, just remove compiler warnings

  • Property mode set to 100644
Line 
1 /*
2  * Copyright (c) 2005-2007, OmniTI Computer Consulting, Inc.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are
7  * met:
8  *
9  *    * Redistributions of source code must retain the above copyright
10  *      notice, this list of conditions and the following disclaimer.
11  *    * Redistributions in binary form must reproduce the above
12  *      copyright notice, this list of conditions and the following
13  *      disclaimer in the documentation and/or other materials provided
14  *      with the distribution.
15  *    * Neither the name OmniTI Computer Consulting, Inc. nor the names
16  *      of its contributors may be used to endorse or promote products
17  *      derived from this software without specific prior written
18  *      permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32
33 #ifndef __JLOG_CONFIG_H
34 #define __JLOG_CONFIG_H
35
36 /* define inline unless that is what the compiler already calls it. */
37 #undef inline
38
39 #undef HAVE_FCNTL_H
40 #undef HAVE_SYS_TYPES_H
41 #undef HAVE_DIRENT_H
42 #undef HAVE_ERRNO_H
43 #undef HAVE_STRING_H
44 #undef HAVE_STDLIB_H
45 #undef HAVE_UNISTD_H
46 #undef HAVE_SYS_PARAM_H
47 #undef HAVE_SYS_MMAN_H
48 #undef HAVE_TIME_H
49 #undef HAVE_SYS_TIME_H
50 #undef HAVE_SYS_STAT_H
51 #undef HAVE_INT64_T
52 #undef HAVE_INTXX_T
53 #undef HAVE_LONG_LONG_INT
54 #undef HAVE_UINTXX_T
55 #undef HAVE_U_INT
56 #undef HAVE_U_INT64_T
57 #undef HAVE_U_INTXX_T
58 #define IFS_CH '/'
59
60 #ifdef HAVE_STRING_H
61 #include <string.h>
62 #endif
63 #ifdef HAVE_STDLIB_H
64 #include <stdlib.h>
65 #endif
66 #ifdef HAVE_SYS_PARAM_H
67 #include <sys/param.h>
68 #endif
69 #ifdef HAVE_SYS_TYPES_H
70 #include <sys/types.h>
71 #endif
72 #ifdef HAVE_SYS_STAT_H
73 #include <sys/stat.h>
74 #endif
75
76 /* The number of bytes in a char.  */
77 #undef SIZEOF_CHAR
78
79 /* The number of bytes in a int.  */
80 #undef SIZEOF_INT
81
82 /* The number of bytes in a size_t.  */
83 #undef SIZEOF_SIZE_T
84
85
86 /* The number of bytes in a long int.  */
87 #undef SIZEOF_LONG_INT
88
89 /* The number of bytes in a long long int.  */
90 #undef SIZEOF_LONG_LONG_INT
91
92 /* The number of bytes in a short int.  */
93 #undef SIZEOF_SHORT_INT
94
95 /* The number of bytes in a void *.  */
96 #undef SIZEOF_VOID_P
97
98 #ifndef HAVE_U_INT
99 typedef unsigned int u_int;
100 #endif
101
102 #undef HAVE_INTXX_T
103 #ifndef HAVE_INTXX_T
104 #if (SIZEOF_CHAR == 1)
105 typedef char int8_t;
106 #else
107 #error "8 bit int type not found."
108 #endif
109 #if (SIZEOF_SHORT_INT == 2)
110 typedef short int int16_t;
111 #else
112 #ifdef _CRAY
113 typedef long int16_t;
114 #else
115 #warning "16 bit int type not found."
116 #endif /* _CRAY */
117 #endif
118 #if (SIZEOF_INT == 4)
119 typedef int int32_t;
120 #else
121 #ifdef _CRAY
122 typedef long int32_t;
123 #else
124 #error "32 bit int type not found."
125 #endif /* _CRAY */
126 #endif
127 #endif
128
129 /* If sys/types.h does not supply u_intXX_t, supply them ourselves */
130 #ifndef HAVE_U_INTXX_T
131 #ifdef HAVE_UINTXX_T
132 typedef uint8_t u_int8_t;
133 typedef uint16_t u_int16_t;
134 typedef uint32_t u_int32_t;
135 #define HAVE_U_INTXX_T 1
136 #else
137 #if (SIZEOF_CHAR == 1)
138 typedef unsigned char u_int8_t;
139 #else
140 #error "8 bit int type not found."
141 #endif
142 #if (SIZEOF_SHORT_INT == 2)
143 typedef unsigned short int u_int16_t;
144 #else
145 #ifdef _CRAY
146 typedef unsigned long u_int16_t;
147 #else
148 #warning "16 bit int type not found."
149 #endif
150 #endif
151 #if (SIZEOF_INT == 4)
152 typedef unsigned int u_int32_t;
153 #else
154 #ifdef _CRAY
155 typedef unsigned long u_int32_t;
156 #else
157 #error "32 bit int type not found."
158 #endif
159 #endif
160 #endif
161 #endif
162
163 /* 64-bit types */
164 #ifndef HAVE_INT64_T
165 #if (SIZEOF_LONG_INT == 8)
166 typedef long int int64_t;
167 #define HAVE_INT64_T 1
168 #else
169 #if (SIZEOF_LONG_LONG_INT == 8)
170 typedef long long int int64_t;
171 #define HAVE_INT64_T 1
172 #define HAVE_LONG_LONG_INT
173 #endif
174 #endif
175 #endif
176 #ifndef HAVE_U_INT64_T
177 #if (SIZEOF_LONG_INT == 8)
178 typedef unsigned long int u_int64_t;
179 #define HAVE_U_INT64_T 1
180 #else
181 #if (SIZEOF_LONG_LONG_INT == 8)
182 typedef unsigned long long int u_int64_t;
183 #define HAVE_U_INT64_T 1
184 #endif
185 #endif
186 #endif
187
188 #endif
Note: See TracBrowser for help on using the browser.