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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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"
36
const int max_connections = 500;
38
#include <mysql_version.h>
39
#include "my_global.h"
43
* This enables everything that GNU can do. The macro is actually
44
* recommended for new programs.
51
* Make sure we use the thread safe version of the library.
53
#ifndef _THREAD_SAFE // Seems to be defined by some Drizzle header
58
* This causes things to be defined like stuff in inttypes.h
59
* which is used in printf()
61
#ifndef __STDC_FORMAT_MACROS
62
#define __STDC_FORMAT_MACROS
66
* This define is not required by Linux because the _GNU_SOURCE
67
* definition includes POSIX complience. But I need it for
70
//#define _POSIX_C_SOURCE 2
71
//#define _ANSI_SOURCE
77
#if defined(MSDOS) || defined(__WIN__) || defined(_WIN64)
82
#if defined(_DEBUG) && !defined(DEBUG)
86
// Paul suggested to disable PBMS in MariaDB for now.
87
// #define PBMS_ENABLED
103
* Definition of which atomic operations to use:
107
/* 64-bit Windows atomic ops are not yet supported: */
108
#define XT_NO_ATOMICS
110
/* MS Studio style embedded assembler for x86 */
111
#define XT_ATOMIC_WIN32_X86
113
#elif defined(__GNUC__) && (defined(__x86_64__) || defined(__i386__))
114
/* Use GNU style embedded assembler for x86 */
115
#define XT_ATOMIC_GNUC_X86
116
#elif defined(XT_SOLARIS)
117
/* Use Sun atomic operations library
118
* http://docs.sun.com/app/docs/doc/816-5168/atomic-ops-3c?a=view
120
#define XT_ATOMIC_SOLARIS_LIB
122
#define XT_NO_ATOMICS
126
#if MYSQL_VERSION_ID >= 50404
127
//#define MYSQL_SUPPORTS_BACKUP
131
#if defined(DBUG_ON) && !defined(DBUG_OFF) && !defined(DEBUG)