1
/* Copyright (C) 2005 PrimeBase Technologies GmbH
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19
* 2006-03-22 Paul McCullagh
23
* This header file should be included in every source, before all other
26
* In particular: BEFORE THE SYSTEM HEADERS
29
#ifndef __xt_config_h__
30
#define __xt_config_h__
32
#define MYSQL_SERVER 1
35
//#include "drizzled/global.h"
37
//#include <drizzled/cursor.h>
38
//#include <drizzled/thr_lock.h>
39
//#include <drizzled/plugin/transactional_storage_engine.h>
40
const int max_connections = 500;
42
#include <mysql_version.h>
43
#include "my_global.h"
47
* This enables everything that GNU can do. The macro is actually
48
* recommended for new programs.
55
* Make sure we use the thread safe version of the library.
57
#ifndef _THREAD_SAFE // Seems to be defined by some Drizzle header
62
* This causes things to be defined like stuff in inttypes.h
63
* which is used in printf()
65
#ifndef __STDC_FORMAT_MACROS
66
#define __STDC_FORMAT_MACROS
70
* This define is not required by Linux because the _GNU_SOURCE
71
* definition includes POSIX complience. But I need it for
74
//#define _POSIX_C_SOURCE 2
75
//#define _ANSI_SOURCE
81
#if defined(MSDOS) || defined(__WIN__) || defined(_WIN64)
86
#if defined(_DEBUG) && !defined(DEBUG)
102
#define BYTE_ORDER BIG_ENDIAN
105
#define BYTE_ORDER LITTLE_ENDIAN
107
#if defined(__amd64___) || defined(__x86_64__)
108
#define BYTE_ORDER LITTLE_ENDIAN
113
* Definition of which atomic operations to use:
117
/* 64-bit Windows atomic ops are not yet supported: */
118
#define XT_NO_ATOMICS
120
/* MS Studio style embedded assembler for x86 */
121
#define XT_ATOMIC_WIN32_X86
123
#elif defined(__GNUC__) && (defined(__x86_64__) || defined(__i386__))
124
/* Use GNU style embedded assembler for x86 */
125
#define XT_ATOMIC_GNUC_X86
126
#elif defined(XT_SOLARIS)
127
/* Use Sun atomic operations library
128
* http://docs.sun.com/app/docs/doc/816-5168/atomic-ops-3c?a=view
130
#define XT_ATOMIC_SOLARIS_LIB
132
#define XT_NO_ATOMICS
136
#if MYSQL_VERSION_ID >= 50404
137
#define MYSQL_SUPPORTS_BACKUP
141
#if defined(DBUG_ON) && !defined(DBUG_OFF) && !defined(DEBUG)