summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
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