~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/global.h

Added autoconf tests for location of cstdint and cinttypes. Use those in C++ programs now, so that we don't have to define _STDC_LIMIT_MACROS, etc by hand. Stop, in fact, defining those by hand.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
#include "config.h"
30
30
 
 
31
#if defined(__cplusplus)
 
32
# include CSTDINT_H
 
33
# include CINTTYPES_H
 
34
#else
 
35
# if defined(HAVE_STDINT_H)
 
36
#  include <stdint.h>
 
37
# else
 
38
#  error "You must have stdint!"
 
39
# endif
 
40
# if defined(HAVE_INTTYPES_H)
 
41
#  include <inttypes.h>
 
42
# else
 
43
#  error "You must have inttypes!"
 
44
# endif
 
45
#endif 
 
46
 
31
47
/*
32
48
  Temporary solution to solve bug#7156. Include "sys/types.h" before
33
49
  the thread headers, else the function madvise() will not be defined
36
52
#include <sys/types.h>
37
53
#endif
38
54
 
39
 
#if defined(HAVE_STDINT_H)
40
 
#include <stdint.h>
41
 
#else
42
 
#error "You must have stdint!"
43
 
#endif
44
 
 
45
 
#if defined(HAVE_INTTYPES_H)
46
 
#include <inttypes.h>
47
 
#else
48
 
#error "You must have inttypes!"
49
 
#endif
50
55
 
51
56
#include <pthread.h>    /* AIX must have this included first */
52
57