From: Boyuan Yang <byang@debian.org>
Date: Tue, 9 Nov 2021 16:33:05 -0500
Subject: Fix ruby3.0 FTBFS (extern C)

---
 kyotocabinet.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kyotocabinet.cc b/kyotocabinet.cc
index 7bd37df..dbc94c9 100644
--- a/kyotocabinet.cc
+++ b/kyotocabinet.cc
@@ -17,7 +17,6 @@
 
 namespace kc = kyotocabinet;
 
-extern "C" {
 
 #include <ruby.h>
 
@@ -27,6 +26,8 @@ extern "C" {
 #endif
 
 
+extern "C" {
+
 // precedent type declaration
 class CursorBurrow;
 struct SoftCursor;
