summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorcrimsonwoods <[email protected]>2012-07-22 23:10:15 +0900
committercrimsonwoods <[email protected]>2012-07-22 23:10:15 +0900
commitd61cb77346708754ec0b4625c79841d45f01fff3 (patch)
tree49e78cd2a7683f87fa0cbb56650147e3f8771b83 /src
parent1b9708ef830a7c662940412ea4b0c8e406ee8d1e (diff)
downloadmruby-d61cb77346708754ec0b4625c79841d45f01fff3.tar.gz
mruby-d61cb77346708754ec0b4625c79841d45f01fff3.zip
fix: SIZE_MAX is not defined in "stdint.h"
Diffstat (limited to 'src')
-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