1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
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;
|