summaryrefslogtreecommitdiffhomepage
path: root/src/load.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/load.c')
-rw-r--r--src/load.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/load.c b/src/load.c
index 6a173788a..4a9947e75 100644
--- a/src/load.c
+++ b/src/load.c
@@ -4,13 +4,18 @@
** See Copyright Notice in mruby.h
*/
+#ifndef SIZE_MAX
+ /* Some versions of VC++
+ * has SIZE_MAX in stdint.h
+ */
+# include <limits.h>
+#endif
#include <stdlib.h>
#include <string.h>
#include "mruby/dump.h"
-
-#include "mruby/string.h"
-#include "mruby/proc.h"
#include "mruby/irep.h"
+#include "mruby/proc.h"
+#include "mruby/string.h"
#ifdef ENABLE_STDIO
typedef struct _RiteFILE