~jaypipes/drizzle/new-test-runner

« back to all changes in this revision

Viewing changes to drizzled/global.h

  • Committer: Jay Pipes
  • Date: 2008-12-11 17:52:34 UTC
  • mfrom: (482.16.152 testable)
  • Revision ID: jpipes@serialcoder-20081211175234-uqsfvmgxejvmellq
merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
# include <cstddef>
42
42
# include <cassert>
43
43
# include <cerrno>
 
44
# include <sstream>
44
45
#else
45
46
# include <stdint.h>
46
47
# include <inttypes.h>
88
89
#ifdef HAVE_UNISTD_H
89
90
#include <unistd.h>
90
91
#endif
91
 
#if defined(__cplusplus) && defined(NO_CPLUSPLUS_ALLOCA)
92
 
#undef HAVE_ALLOCA
93
 
#undef HAVE_ALLOCA_H
94
 
#endif
95
 
#ifdef HAVE_ALLOCA_H
96
 
#include <alloca.h>
97
 
#endif
98
 
 
99
92
 
100
93
 
101
94
#ifdef HAVE_SYS_STAT_H
234
227
 
235
228
typedef uint64_t my_off_t;
236
229
 
237
 
#define MY_FILEPOS_ERROR  (UINT64_MAX)
 
230
#if defined(SIZEOF_OFF_T)
 
231
# if (SIZEOF_OFF_T == 8)
 
232
#  define OFF_T_MAX (INT64_MAX)
 
233
# else
 
234
#  define OFF_T_MAX (INT32_MAX)
 
235
# endif
 
236
#endif
238
237
 
 
238
#define MY_FILEPOS_ERROR  -1
239
239
 
240
240
/* Defines for time function */
241
241
#define SCALE_SEC  100