forked from mroonga/mroonga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmrn_mysql.h
62 lines (50 loc) · 1.63 KB
/
mrn_mysql.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2011 Kouhei Sutou <[email protected]>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _mrn_mysql_h
#define _mrn_mysql_h
#ifdef HAVE_CONFIG_H
# include "config.h"
/* We need to undefine them because my_config.h defines them. :< */
# undef VERSION
# undef PACKAGE
# undef PACKAGE_BUGREPORT
# undef PACKAGE_NAME
# undef PACKAGE_STRING
# undef PACKAGE_TARNAME
# undef PACKAGE_VERSION
#endif
#include "mrn_version.h"
#ifdef FORCE_FAST_MUTEX_DISABLED
# ifdef MY_PTHREAD_FASTMUTEX
# undef MY_PTHREAD_FASTMUTEX
# endif
#endif
#define MYSQL_SERVER 1
#include <mysql_version.h>
#if MYSQL_VERSION_ID < 50500
# include <mysql_priv.h>
# include <mysql/plugin.h>
#else
# include <sql_priv.h>
# include <sql_class.h>
# include <probes_mysql.h>
# include <sql_partition.h>
#endif
#ifdef MARIADB_BASE_VERSION
# define MRN_MARIADB_P 1
#endif
#define MRN_DBUG_ENTER_FUNCTION() DBUG_ENTER(__FUNCTION__)
#endif /* _mrn_mysql_h */