1 | /* |
2 | * Legal Notice |
3 | * |
4 | * This document and associated source code (the "Work") is a part of a |
5 | * benchmark specification maintained by the TPC. |
6 | * |
7 | * The TPC reserves all right, title, and interest to the Work as provided |
8 | * under U.S. and international laws, including without limitation all patent |
9 | * and trademark rights therein. |
10 | * |
11 | * No Warranty |
12 | * |
13 | * 1.1 TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE INFORMATION |
14 | * CONTAINED HEREIN IS PROVIDED "AS IS" AND WITH ALL FAULTS, AND THE |
15 | * AUTHORS AND DEVELOPERS OF THE WORK HEREBY DISCLAIM ALL OTHER |
16 | * WARRANTIES AND CONDITIONS, EITHER EXPRESS, IMPLIED OR STATUTORY, |
17 | * INCLUDING, BUT NOT LIMITED TO, ANY (IF ANY) IMPLIED WARRANTIES, |
18 | * DUTIES OR CONDITIONS OF MERCHANTABILITY, OF FITNESS FOR A PARTICULAR |
19 | * PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OF |
20 | * WORKMANLIKE EFFORT, OF LACK OF VIRUSES, AND OF LACK OF NEGLIGENCE. |
21 | * ALSO, THERE IS NO WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT, |
22 | * QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR NON-INFRINGEMENT |
23 | * WITH REGARD TO THE WORK. |
24 | * 1.2 IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THE WORK BE LIABLE TO |
25 | * ANY OTHER PARTY FOR ANY DAMAGES, INCLUDING BUT NOT LIMITED TO THE |
26 | * COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST PROFITS, LOSS |
27 | * OF USE, LOSS OF DATA, OR ANY INCIDENTAL, CONSEQUENTIAL, DIRECT, |
28 | * INDIRECT, OR SPECIAL DAMAGES WHETHER UNDER CONTRACT, TORT, WARRANTY, |
29 | * OR OTHERWISE, ARISING IN ANY WAY OUT OF THIS OR ANY OTHER AGREEMENT |
30 | * RELATING TO THE WORK, WHETHER OR NOT SUCH AUTHOR OR DEVELOPER HAD |
31 | * ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. |
32 | * |
33 | * Contributors: |
34 | * Gradient Systems |
35 | */ |
36 | |
37 | #ifndef CONFIG_H |
38 | #define CONFIG_H |
39 | |
40 | //#ifdef MACOS |
41 | #define SUPPORT_64BITS |
42 | #define HUGE_TYPE int64_t |
43 | #define HUGE_FORMAT "%zu" |
44 | #define HUGE_COUNT 1 |
45 | #define USE_STRING_H |
46 | #define USE_STDLIB_H |
47 | #define USE_LIMITS_H |
48 | #include <limits.h> |
49 | #define MAXINT INT_MAX |
50 | |
51 | //#define FLEX |
52 | //#endif /* MACOS */ |
53 | |
54 | #ifdef NCR |
55 | #define STDLIB_HAS_GETOPT |
56 | #define USE_STRING_H |
57 | #define USE_VALUES_H |
58 | #ifdef SQLSERVER |
59 | #define WIN32 |
60 | #else |
61 | /* the 64 bit defines are for the Metaware compiler */ |
62 | #define SUPPORT_64BITS |
63 | #define HUGE_TYPE long long |
64 | #define HUGE_COUNT 1 |
65 | #define HUGE_FORMAT "%LLd" |
66 | #define int32_t int |
67 | #endif /* SQLSERVER or MP/RAS */ |
68 | #endif /* NCR */ |
69 | |
70 | #ifdef AIX |
71 | #define _ALL_SOURCE |
72 | #define USE_STRING_H |
73 | #define USE_LIMITS_H |
74 | /* |
75 | * if the C compiler is 3.1 or later, then uncomment the |
76 | * lines for 64 bit seed generation |
77 | */ |
78 | #define SUPPORT_64BITS |
79 | #define HUGE_TYPE long long |
80 | #define HUGE_COUNT 1 |
81 | #define HUGE_FORMAT "%lld" |
82 | #define STDLIB_HAS_GETOPT |
83 | #define USE_STDLIB_H |
84 | #define FLEX |
85 | #endif /* AIX */ |
86 | |
87 | #ifdef CYGWIN |
88 | #define USE_STRING_H |
89 | #define PATH_SEP '\\' |
90 | #define SUPPORT_64BITS |
91 | #define HUGE_TYPE __int64 |
92 | #define HUGE_COUNT 1 |
93 | #define HUGE_FORMAT "%I64d" |
94 | #endif /* WIN32 */ |
95 | |
96 | #ifdef HPUX |
97 | #define SUPPORT_64BITS |
98 | #define HUGE_TYPE long long int |
99 | #define HUGE_FORMAT "%lld" |
100 | #define HUGE_COUNT 1 |
101 | #define USE_STRING_H |
102 | #define USE_VALUES_H |
103 | #define USE_STDLIB_H |
104 | #define FLEX |
105 | #endif /* HPUX */ |
106 | |
107 | #ifdef INTERIX |
108 | #define USE_LIMITS_H |
109 | #define SUPPORT_64BITS |
110 | #define HUGE_TYPE long long int |
111 | #define HUGE_FORMAT "%lld" |
112 | #define HUGE_COUNT 1 |
113 | #endif /* INTERIX */ |
114 | |
115 | #ifdef LINUX |
116 | #define SUPPORT_64BITS |
117 | #define HUGE_TYPE int64_t |
118 | #define HUGE_FORMAT "%lld" |
119 | #define HUGE_COUNT 1 |
120 | #define USE_STRING_H |
121 | #define USE_VALUES_H |
122 | #define USE_STDLIB_H |
123 | #define FLEX |
124 | #endif /* LINUX */ |
125 | |
126 | #ifdef SOLARIS |
127 | #define SUPPORT_64BITS |
128 | #define HUGE_TYPE long long |
129 | #define HUGE_FORMAT "%lld" |
130 | #define HUGE_COUNT 1 |
131 | #define USE_STRING_H |
132 | #define USE_VALUES_H |
133 | #define USE_STDLIB_H |
134 | #endif /* SOLARIS */ |
135 | |
136 | #ifdef SOL86 |
137 | #define SUPPORT_64BITS |
138 | #define HUGE_TYPE long long |
139 | #define HUGE_FORMAT "%lld" |
140 | #define HUGE_COUNT 1 |
141 | #define USE_STRING_H |
142 | #define USE_VALUES_H |
143 | #define USE_STDLIB_H |
144 | #endif /* SOLARIS */ |
145 | |
146 | #ifdef WIN32 |
147 | #define USE_STRING_H |
148 | #define USE_LIMITS_H |
149 | #define PATH_SEP '\\' |
150 | #define SUPPORT_64BITS |
151 | #define HUGE_TYPE __int64 |
152 | #define HUGE_COUNT 1 |
153 | #define HUGE_FORMAT "%I64d" |
154 | #endif /* WIN32 */ |
155 | |
156 | /* preliminary defines for 64-bit windows compile */ |
157 | #ifdef WIN64 |
158 | #define USE_STRING_H |
159 | #define PATH_SEP '\\' |
160 | #define SUPPORT_64BITS |
161 | #define HUGE_TYPE __int64 |
162 | #define HUGE_COUNT 1 |
163 | #define HUGE_FORMAT "%I64d" |
164 | #endif /* WIN32 */ |
165 | |
166 | #ifndef PATH_SEP |
167 | #define PATH_SEP '/' |
168 | #endif /* PATH_SEP */ |
169 | |
170 | #ifndef HUGE_TYPE |
171 | #error The code now requires 64b support |
172 | #endif |
173 | |
174 | /*** |
175 | ** DATABASE DEFINES |
176 | ***/ |
177 | #ifdef _MYSQL |
178 | #define STR_QUOTES |
179 | #endif |
180 | #endif /* CONFIG_H */ |
181 | |