Commit 33c30da1 authored by Marko Mäkelä's avatar Marko Mäkelä

Fix clang -Wtypedef-redefinition

Fixup for commit 77c184df
parent 3c9f415e
......@@ -20,7 +20,7 @@
#ifndef _my_alloc_h
#define _my_alloc_h
typedef unsigned int PSI_memory_key;
#include "mysql/psi/psi_base.h"
#define ALLOC_MAX_BLOCK_TO_DROP 4096
#define ALLOC_MAX_BLOCK_USAGE_BEFORE_DROP 10
......
......@@ -238,7 +238,9 @@ typedef struct st_mysql_field {
typedef char **MYSQL_ROW;
typedef unsigned int MYSQL_FIELD_OFFSET;
typedef unsigned long long my_ulonglong;
extern "C" {
typedef unsigned int PSI_memory_key;
}
extern "C" {
typedef struct st_used_mem
{
......
extern "C" {
typedef unsigned int PSI_memory_key;
}
extern "C" {
struct PSI_thread;
typedef unsigned int PSI_memory_key;
struct PSI_memory_info_v1
{
PSI_memory_key *m_key;
......
extern "C" {
typedef unsigned int PSI_memory_key;
}
extern "C" {
struct PSI_thread;
typedef unsigned int PSI_memory_key;
struct PSI_memory_info_v2
{
int placeholder;
......
......@@ -164,6 +164,13 @@ extern "C" {
/** @} */
/**
Instrumented memory key.
To instrument memory, a memory key must be obtained using @c register_memory.
Using a zero key always disable the instrumentation.
*/
typedef unsigned int PSI_memory_key;
#ifdef __cplusplus
}
#endif
......
......@@ -53,13 +53,6 @@ extern "C" {
struct PSI_thread;
/**
Instrumented memory key.
To instrument memory, a memory key must be obtained using @c register_memory.
Using a zero key always disable the instrumentation.
*/
typedef unsigned int PSI_memory_key;
#ifdef HAVE_PSI_1
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment