~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-02-14 01:56:51 UTC
  • mto: (1273.16.5 fix_is)
  • mto: This revision was merged to the branch mainline in revision 1300.
  • Revision ID: brian@gaz-20100214015651-ror9j0xu7dccz0ct
Two fixes for "make dist"

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (c) 2008 PrimeBase Technologies GmbH, Germany
2
 
 *
3
 
 * PrimeBase Media Stream for MySQL
4
 
 *
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.
9
 
 *
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.
14
 
 *
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
18
 
 *
19
 
 * Original author: Paul McCullagh (H&G2JCtL)
20
 
 * Continued development: Barry Leslie
21
 
 *
22
 
 * 2007-05-30
23
 
 *
24
 
 * CORE SYSTEM:
25
 
 * Compilation flags. Should be included at the top of all
26
 
 * source files.
27
 
 *
28
 
 */
29
 
 
30
 
#ifndef __CSCONFIG_H__
31
 
#define __CSCONFIG_H__
32
 
 
33
 
#if defined(MYSQL_SERVER) ||  defined(DRIZZLED)
34
 
// Because mysql_priv.h can redefine system data types it is not safe to include it
35
 
// in some souce code files and not others because of what it may do to structures defined
36
 
// in other headers. So the only safe thing I can think of is to include it in all source code
37
 
// files.
38
 
#ifdef DRIZZLED
39
 
#include "config.h"
40
 
#include <drizzled/common.h>
41
 
#else
42
 
#include "my_global.h"
43
 
#include "mysql_priv.h"
44
 
#endif
45
 
 
46
 
#else  // defined(MYSQL_SERVER) ||  defined(DRIZZLED)
47
 
 
48
 
#if defined(WIN32) ||  defined(WIN64) 
49
 
#include "win_config.h"
50
 
#else
51
 
#include "config.h"
52
 
#endif
53
 
 
54
 
#endif // defined(MYSQL_SERVER) ||  defined(DRIZZLED)
55
 
 
56
 
 
57
 
/*
58
 
 * This enables everything that GNU can do. The macro is actually
59
 
 * recommended for new programs.
60
 
 */
61
 
#ifndef _GNU_SOURCE
62
 
#define _GNU_SOURCE
63
 
#endif
64
 
 
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
78
 
#endif
79
 
 
80
 
/*
81
 
 * What operating system are we on?
82
 
 */
83
 
#ifdef __APPLE__
84
 
#define OS_MACINTOSH
85
 
#endif
86
 
 
87
 
#if defined(MSDOS) || defined(__WIN__) || defined(_WIN64) || defined(WIN32)
88
 
#define OS_WINDOWS
89
 
#endif
90
 
 
91
 
#ifdef __FreeBSD__
92
 
#define OS_FREEBSD
93
 
#endif
94
 
 
95
 
#ifdef __NetBSD__
96
 
#define OS_NETBSD
97
 
#endif
98
 
 
99
 
#ifdef __sun
100
 
#define OS_SOLARIS
101
 
#endif
102
 
 
103
 
#if defined(_DEBUG) || defined(DBUG_ON)
104
 
#if !defined(NODEBUG) && !defined(DBUG_OFF) && !defined(DEBUG)
105
 
#define DEBUG
106
 
#endif
107
 
#endif
108
 
 
109
 
#endif