00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #pragma once
00031 #ifndef __CSCONFIG_H__
00032 #define __CSCONFIG_H__
00033
00034 #if defined(MYSQL_SERVER) || defined(DRIZZLED)
00035
00036
00037
00038
00039 #ifdef DRIZZLED
00040 #include <config.h>
00041 #include <drizzled/common.h>
00042 #else
00043 #include "my_global.h"
00044 #include "mysql_priv.h"
00045 #endif
00046
00047 #else // defined(MYSQL_SERVER) || defined(DRIZZLED)
00048
00049 #if defined(WIN32) || defined(WIN64)
00050 #include "win_config.h"
00051 #else
00052 #include <config.h>
00053 #endif
00054
00055 #endif // defined(MYSQL_SERVER) || defined(DRIZZLED)
00056
00057
00058
00059
00060
00061
00062 #ifndef _GNU_SOURCE
00063 #define _GNU_SOURCE
00064 #endif
00065
00066
00067
00068
00069 #ifndef _THREAD_SAFE // Seems to be defined by some Drizzle header
00070 #define _THREAD_SAFE
00071 #endif
00072
00073
00074
00075
00076
00077 #ifndef __STDC_FORMAT_MACROS
00078 #define __STDC_FORMAT_MACROS
00079 #endif
00080
00081
00082
00083
00084 #ifdef __APPLE__
00085 #define OS_MACINTOSH
00086 #endif
00087
00088 #if defined(MSDOS) || defined(__WIN__) || defined(_WIN64) || defined(WIN32)
00089 #define OS_WINDOWS
00090 #endif
00091
00092 #ifdef __FreeBSD__
00093 #define OS_FREEBSD
00094 #endif
00095
00096 #ifdef __NetBSD__
00097 #define OS_NETBSD
00098 #endif
00099
00100 #ifdef __sun
00101 #define OS_SOLARIS
00102 #endif
00103
00104 #if defined(_DEBUG) || defined(DBUG_ON)
00105 #if !defined(NODEBUG) && !defined(DBUG_OFF) && !defined(DEBUG)
00106 #define DEBUG
00107 #endif
00108 #endif
00109
00110 #endif