summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-07-22 14:02:09 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2012-07-22 14:02:09 -0700
commit6cd32ee4c28cd19f9b78cfaf8bcdba4ce7b6250a (patch)
treeee240fdc9a95ebd132d95bbb8b27de78be82d8d3
parenta9a91c3561ff68d361c7aaf5bfd3379598012c82 (diff)
parentd61cb77346708754ec0b4625c79841d45f01fff3 (diff)
downloadmruby-6cd32ee4c28cd19f9b78cfaf8bcdba4ce7b6250a.tar.gz
mruby-6cd32ee4c28cd19f9b78cfaf8bcdba4ce7b6250a.zip
Merge pull request #391 from crimsonwoods/android_ndk_support
fix: SIZE_MAX is not defined in "stdint.h"
-rw-r--r--src/gc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gc.c b/src/gc.c
index 3c00bb015..819fb94c6 100644
--- a/src/gc.c
+++ b/src/gc.c
@@ -17,6 +17,10 @@
#include "mruby/data.h"
#include "mruby/variable.h"
+#ifndef SIZE_MAX
+#include <limits.h> // for SIZE_MAX
+#endif
+
/*
= Tri-color Incremental Garbage Collection