summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <serg@serg.mysql.com>2001-08-22 14:15:01 +0200
committerunknown <serg@serg.mysql.com>2001-08-22 14:15:01 +0200
commit7374310f96778ad122f6e7006eaa81d759227d5b (patch)
tree97d424ee66dbd27aa21e1266f1678095b8bf3b53 /include
parent57d9bc04346f2e37bbea93109b7f432060df9b6a (diff)
downloadmariadb-git-7374310f96778ad122f6e7006eaa81d759227d5b.tar.gz
#include <my_pthread.h>
extern "C" { client/mysqlbinlog.cc: #include <my_pthread.h> include/my_pthread.h: #ifdef _cplusplus extern "C" { #endif
Diffstat (limited to 'include')
-rw-r--r--include/my_pthread.h9
1 files changed, 9 insertions, 0 deletions
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 */