summaryrefslogtreecommitdiffhomepage
path: root/src/struct.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-06-17 23:36:34 +0900
committerYukihiro Matsumoto <[email protected]>2012-06-17 23:36:34 +0900
commitede3049f33f8c6cdb703784619fb4143bfe3b441 (patch)
tree6603c359fab9b0d3090ee45ef77c75eea6973604 /src/struct.c
parent8399d936a233429d748888ca17a27f53a1ae3e48 (diff)
downloadmruby-ede3049f33f8c6cdb703784619fb4143bfe3b441.tar.gz
mruby-ede3049f33f8c6cdb703784619fb4143bfe3b441.zip
allow disabling Struct class
Diffstat (limited to 'src/struct.c')
-rw-r--r--src/struct.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/struct.c b/src/struct.c
index 8e9804cbc..c0af85d0e 100644
--- a/src/struct.c
+++ b/src/struct.c
@@ -5,6 +5,7 @@
*/
#include "mruby.h"
+#ifdef ENABLE_STRUCT
#include <string.h>
#include "error.h"
#include "mruby/struct.h"
@@ -793,3 +794,4 @@ mrb_init_struct(mrb_state *mrb)
mrb_define_method(mrb, st, "eql?", mrb_struct_eql, ARGS_REQ(1)); /* 15.2.18.4.12(x) */
}
+#endif /* ENABLE_STRUCT */