summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Frank <flori@ping.de>2011-08-30 00:15:59 +0200
committerFlorian Frank <flori@ping.de>2011-08-30 00:15:59 +0200
commit2149f4185c598fb97db1cabb03d3a786bdb79385 (patch)
treeacfefd34d31061ae4ef6d0a8000894d52cebf25d
parente63431185a04d897c70fdef57e4260f410d997c2 (diff)
downloadjson-2149f4185c598fb97db1cabb03d3a786bdb79385.tar.gz
We don't need RB_GC_GUARD for rbx.
-rw-r--r--ext/json/ext/generator/generator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/json/ext/generator/generator.h b/ext/json/ext/generator/generator.h
index d72f71f..f882ea0 100644
--- a/ext/json/ext/generator/generator.h
+++ b/ext/json/ext/generator/generator.h
@@ -45,6 +45,11 @@
#define RSTRING_LEN(string) RSTRING(string)->len
#endif
+/* We don't need to guard objects for rbx, so let's do nothing at all. */
+#ifndef RB_GC_GUARD
+#define RB_GC_GUARD(object)
+#endif
+
/* fbuffer implementation */
typedef struct FBufferStruct {