summaryrefslogtreecommitdiff
path: root/sql/sql_profile.h
diff options
context:
space:
mode:
authorKonstantin Osipov <kostja@sun.com>2009-12-03 00:24:10 +0300
committerKonstantin Osipov <kostja@sun.com>2009-12-03 00:24:10 +0300
commitf744a841342aab98adcd01b053e1dc1f8b5a94e3 (patch)
treea01fd3fc8d2b32d544216a890dd85e0ba0e05845 /sql/sql_profile.h
parent669258ab54b454e7faee232c5aa6e758afb3c692 (diff)
downloadmariadb-git-f744a841342aab98adcd01b053e1dc1f8b5a94e3.tar.gz
Backport of:
------------------------------------------------------------ revno: 2630.4.37 committer: Dmitry Lenev <dlenev@mysql.com> branch nick: mysql-6.0-3726-w2 timestamp: Wed 2008-06-25 20:28:57 +0400 message: Fix build failure of mysql-6.0-3726 tree on Windows. The failure was caused by the fact that sql/mdl.cc was using __func__ macro without including sql_profile.h header which contained definition of this macro for those platforms that miss it. This patch solves this problem by moving this define to include/my_global.h which makes it available in modules which don't/can't include sql/mysql_priv.h. This is a patch that is part of WL#3726.
Diffstat (limited to 'sql/sql_profile.h')
-rw-r--r--sql/sql_profile.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/sql/sql_profile.h b/sql/sql_profile.h
index bffe1cb576b..e9c5686efab 100644
--- a/sql/sql_profile.h
+++ b/sql/sql_profile.h
@@ -16,14 +16,6 @@
#ifndef _SQL_PROFILE_H
#define _SQL_PROFILE_H
-#ifndef __func__
-#ifdef __FUNCTION__
-#define __func__ __FUNCTION__
-#else
-#define __func__ "unknown function"
-#endif
-#endif
-
extern ST_FIELD_INFO query_profile_statistics_info[];
int fill_query_profile_statistics_info(THD *thd, TABLE_LIST *tables, Item *cond);
int make_profile_table_for_show(THD *thd, ST_SCHEMA_TABLE *schema_table);