From 7374310f96778ad122f6e7006eaa81d759227d5b Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 22 Aug 2001 14:15:01 +0200 Subject: [PATCH] #include extern "C" { client/mysqlbinlog.cc: #include include/my_pthread.h: #ifdef _cplusplus extern "C" { #endif --- client/mysqlbinlog.cc | 1 + include/my_pthread.h | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/client/mysqlbinlog.cc b/client/mysqlbinlog.cc index f55a5a3f7c4..db28184f3e7 100644 --- a/client/mysqlbinlog.cc +++ b/client/mysqlbinlog.cc @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include "log_event.h" diff --git a/include/my_pthread.h b/include/my_pthread.h index d31d09896dc..79baa7a53e3 100644 --- a/include/my_pthread.h +++ b/include/my_pthread.h @@ -25,6 +25,10 @@ #define ETIME ETIMEDOUT /* For FreeBSD */ #endif +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + #if defined(__WIN__) || defined(OS2) #ifdef OS2 @@ -612,4 +616,9 @@ extern struct st_my_thread_var *_my_thread_var(void) __attribute__ ((const)); #endif /* SAFE_STATISTICS */ #endif /* HAVE_ATOMIC_ADD */ #endif /* thread_safe_increment */ + +#ifdef __cplusplus +} +#endif + #endif /* _my_ptread_h */