~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pbms/src/cslib/CSConfig.h

  • Committer: Brian Aker
  • Date: 2010-10-27 20:29:24 UTC
  • mfrom: (1883 staging)
  • mto: This revision was merged to the branch mainline in revision 1885.
  • Revision ID: brian@tangent.org-20101027202924-7o9s4nhvqgj9oskq
Merge with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
#include "mysql_priv.h"
44
44
#endif
45
45
 
46
 
/* Note: mysql_priv.h messes with new, which caused a crash. */
47
 
#ifdef new
48
 
#undef new
49
 
#endif
 
46
#else  // defined(MYSQL_SERVER) ||  defined(DRIZZLED)
50
47
 
 
48
#if defined(WIN32) ||  defined(WIN64) 
 
49
#include "win_config.h"
51
50
#else
52
51
#include "config.h"
53
 
#endif  //defined(MYSQL_SERVER) ||  defined(DRIZZLED)
54
 
 
55
 
#include <sys/types.h>
56
 
#include <inttypes.h>
57
 
#include <unistd.h>
 
52
#endif
 
53
 
 
54
#endif // defined(MYSQL_SERVER) ||  defined(DRIZZLED)
 
55
 
58
56
 
59
57
/*
60
58
 * This enables everything that GNU can do. The macro is actually
64
62
#define _GNU_SOURCE
65
63
#endif
66
64
 
67
 
#ifndef NODEBUG
68
 
#ifdef DEBUG
69
 
#ifndef DBUG_OFF
70
 
#ifndef DEBUG
71
 
#define DEBUG
72
 
#endif
73
 
#endif
74
 
#endif
 
65
/*
 
66
 * Make sure we use the thread safe version of the library.
 
67
 */
 
68
#ifndef _THREAD_SAFE // Seems to be defined by some Drizzle header
 
69
#define _THREAD_SAFE
 
70
#endif
 
71
 
 
72
/*
 
73
 * This causes things to be defined like stuff in inttypes.h
 
74
 * which is used in printf()
 
75
 */
 
76
#ifndef __STDC_FORMAT_MACROS
 
77
#define __STDC_FORMAT_MACROS
75
78
#endif
76
79
 
77
80
/*
78
81
 * What operating system are we on?
79
82
 */
80
 
#ifdef __darwin__
 
83
#ifdef __APPLE__
81
84
#define OS_MACINTOSH
82
85
#endif
83
86
 
84
 
#if defined(MSDOS) || defined(__WIN__) || defined(_WIN64)
 
87
#if defined(MSDOS) || defined(__WIN__) || defined(_WIN64) || defined(WIN32)
85
88
#define OS_WINDOWS
86
89
#endif
87
90
 
 
91
#ifdef __FreeBSD__
 
92
#define OS_FREEBSD
 
93
#endif
 
94
 
 
95
#ifdef __NetBSD__
 
96
#define OS_NETBSD
 
97
#endif
 
98
 
88
99
#ifdef __sun
89
100
#define OS_SOLARIS
90
101
#endif
91
102
 
92
 
 
93
 
#ifdef OS_WINDOWS
94
 
#ifdef _DEBUG
95
 
#ifndef NODEBUG
96
 
#ifndef DBUG_OFF
97
 
#ifndef DEBUG
 
103
#if defined(_DEBUG) || defined(DBUG_ON)
 
104
#if !defined(NODEBUG) && !defined(DBUG_OFF) && !defined(DEBUG)
98
105
#define DEBUG
99
106
#endif
100
107
#endif
101
 
#endif
102
 
#endif
103
 
#endif
104
108
 
105
109
#endif