~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: lbieber
  • Date: 2010-10-05 22:23:12 UTC
  • mfrom: (1813.1.4 build)
  • Revision ID: lbieber@orisndriz08-20101005222312-weuq0ardk3gcryau
Merge Travis - 621861 - convert structs to classes
Merge Billy - 621331 - Replace use of stringstream with boost::lexical_cast
Merge Travis - 621861 = To change C structs to C++ classes in Drizzle
Merge Andrew - fix bug 653300 - Syntax error on inport of a SQL file produced by drizzledump

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2008 PrimeBase Technologies GmbH, Germany
 
1
/* Copyright (c) 2008 PrimeBase Technologies GmbH, Germany
2
2
 *
3
3
 * PrimeBase Media Stream for MySQL
4
4
 *
43
43
#include "mysql_priv.h"
44
44
#endif
45
45
 
46
 
#else  // defined(MYSQL_SERVER) ||  defined(DRIZZLED)
 
46
/* Note: mysql_priv.h messes with new, which caused a crash. */
 
47
#ifdef new
 
48
#undef new
 
49
#endif
47
50
 
48
 
#if defined(WIN32) ||  defined(WIN64) 
49
 
#include "win_config.h"
50
51
#else
51
52
#include "config.h"
52
 
#endif
53
 
 
54
 
#endif // defined(MYSQL_SERVER) ||  defined(DRIZZLED)
55
 
 
 
53
#endif  //defined(MYSQL_SERVER) ||  defined(DRIZZLED)
 
54
 
 
55
#include <sys/types.h>
 
56
#include <inttypes.h>
 
57
#include <unistd.h>
56
58
 
57
59
/*
58
60
 * This enables everything that GNU can do. The macro is actually
62
64
#define _GNU_SOURCE
63
65
#endif
64
66
 
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
 
67
#ifndef NODEBUG
 
68
#ifdef DEBUG
 
69
#ifndef DBUG_OFF
 
70
#ifndef DEBUG
 
71
#define DEBUG
 
72
#endif
 
73
#endif
 
74
#endif
78
75
#endif
79
76
 
80
77
/*
81
78
 * What operating system are we on?
82
79
 */
83
 
#ifdef __APPLE__
 
80
#ifdef __darwin__
84
81
#define OS_MACINTOSH
85
82
#endif
86
83
 
87
 
#if defined(MSDOS) || defined(__WIN__) || defined(_WIN64) || defined(WIN32)
 
84
#if defined(MSDOS) || defined(__WIN__) || defined(_WIN64)
88
85
#define OS_WINDOWS
89
86
#endif
90
87
 
91
 
#ifdef __FreeBSD__
92
 
#define OS_FREEBSD
93
 
#endif
94
 
 
95
 
#ifdef __NetBSD__
96
 
#define OS_NETBSD
97
 
#endif
98
 
 
99
88
#ifdef __sun
100
89
#define OS_SOLARIS
101
90
#endif
102
91
 
103
 
#if defined(_DEBUG) || defined(DBUG_ON)
104
 
#if !defined(NODEBUG) && !defined(DBUG_OFF) && !defined(DEBUG)
 
92
 
 
93
#ifdef OS_WINDOWS
 
94
#ifdef _DEBUG
 
95
#ifndef NODEBUG
 
96
#ifndef DBUG_OFF
 
97
#ifndef DEBUG
105
98
#define DEBUG
106
99
#endif
107
100
#endif
 
101
#endif
 
102
#endif
 
103
#endif
108
104
 
109
105
#endif