[Groonga-mysql-commit] mroonga/mroonga [master] LOCK_open is declared in C++ lincage.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 6月 8日 (水) 10:46:39 JST


Kouhei Sutou	2011-06-08 01:46:39 +0000 (Wed, 08 Jun 2011)

  New Revision: dd554b022a9e9bebf874018a92a1b8024308ac23

  Log:
    LOCK_open is declared in C++ lincage.

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+4 -4)
===================================================================
--- ha_mroonga.cc    2011-06-06 09:55:34 +0000 (93e924e)
+++ ha_mroonga.cc    2011-06-08 01:46:39 +0000 (2416469)
@@ -60,16 +60,16 @@
 #include "mrn_table.h"
 #include "ha_mroonga.h"
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #if MYSQL_VERSION_ID >= 50500
 extern mysql_mutex_t LOCK_open;
 #else
 extern pthread_mutex_t LOCK_open;
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* global variables */
 grn_obj *mrn_db;
 grn_hash *mrn_hash;




Groonga-mysql-commit メーリングリストの案内
Back to archive index