~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to include/my_global.h

  • Committer: Brian Aker
  • Date: 2008-07-15 20:14:05 UTC
  • mfrom: (77.1.112 codestyle)
  • Revision ID: brian@tangent.org-20080715201405-hov2omn1y8k5r00o
Saving import from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
#define _GNU_SOURCE 1
137
137
#endif
138
138
 
 
139
 
139
140
/*
140
141
  Temporary solution to solve bug#7156. Include "sys/types.h" before
141
142
  the thread headers, else the function madvise() will not be defined
266
267
 
267
268
#if defined(HAVE_STDINT_H)
268
269
/* We are mixing C and C++, so we wan the C limit macros in the C++ too */
 
270
/* Enable some extra C99 extensions */
269
271
#define __STDC_LIMIT_MACROS
 
272
#define __STDC_FORMAT_MACROS
 
273
#include <inttypes.h>
270
274
#include <stdint.h>
271
275
#endif
 
276
 
272
277
#if defined(HAVE_STDBOOL_H)
273
278
#include <stdbool.h>
274
279
#endif
659
664
 
660
665
#define MY_ERRPTR ((void*)(intptr)1)
661
666
 
662
 
#if SIZEOF_OFF_T > 4
 
667
#if SIZEOF_OFF_T > 4 
663
668
typedef uint64_t my_off_t;
664
669
#else
665
670
typedef unsigned long my_off_t;
666
 
#endif
 
671
#endif 
667
672
#define MY_FILEPOS_ERROR        (~(my_off_t) 0)
668
673
 
669
674
typedef off_t os_off_t;