summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/class.c1
-rw-r--r--src/error.c1
-rw-r--r--src/load.c1
-rw-r--r--src/numeric.c1
-rw-r--r--src/object.c1
-rw-r--r--src/parse.y1
-rw-r--r--src/range.c1
-rw-r--r--src/state.c1
-rw-r--r--src/string.c2
9 files changed, 7 insertions, 3 deletions
diff --git a/src/class.c b/src/class.c
index 59431c26e..d53629636 100644
--- a/src/class.c
+++ b/src/class.c
@@ -7,6 +7,7 @@
#include "mruby.h"
#include <stdarg.h>
#include <ctype.h>
+#include <string.h>
#include "mruby/class.h"
#include "mruby/proc.h"
#include "mruby/string.h"
diff --git a/src/error.c b/src/error.c
index 488ab6cef..ddf92382b 100644
--- a/src/error.c
+++ b/src/error.c
@@ -7,6 +7,7 @@
#include "mruby.h"
#include <errno.h>
#include <stdarg.h>
+#include <stdlib.h>
#include <setjmp.h>
#include <string.h>
#include "error.h"
diff --git a/src/load.c b/src/load.c
index 9b5d015ed..fcffcd9de 100644
--- a/src/load.c
+++ b/src/load.c
@@ -4,6 +4,7 @@
** See Copyright Notice in mruby.h
*/
+#include <stdlib.h>
#include <string.h>
#include "mruby/dump.h"
diff --git a/src/numeric.c b/src/numeric.c
index 61b9a2f73..5560bbc7f 100644
--- a/src/numeric.c
+++ b/src/numeric.c
@@ -11,6 +11,7 @@
#include <math.h>
#include <assert.h>
+#include <stdlib.h>
#if defined(__FreeBSD__) && __FreeBSD__ < 4
#include <floatingpoint.h>
diff --git a/src/object.c b/src/object.c
index 0d1cc85b9..fdaf155e5 100644
--- a/src/object.c
+++ b/src/object.c
@@ -5,7 +5,6 @@
*/
#include "mruby.h"
-#include <string.h>
#include "mruby/string.h"
#include "mruby/class.h"
#include "mruby/numeric.h"
diff --git a/src/parse.y b/src/parse.y
index 90e38e0be..931128873 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -25,6 +25,7 @@
#include <errno.h>
#include <ctype.h>
#include <string.h>
+#include <stdlib.h>
#define YYLEX_PARAM p
diff --git a/src/range.c b/src/range.c
index 59bf445aa..76d494b4f 100644
--- a/src/range.c
+++ b/src/range.c
@@ -8,7 +8,6 @@
#include "mruby/class.h"
#include "mruby/range.h"
#include "mruby/string.h"
-#include <string.h>
#define RANGE_CLASS (mrb_class_obj_get(mrb, "Range"))
diff --git a/src/state.c b/src/state.c
index b9523b400..ba7699f8a 100644
--- a/src/state.c
+++ b/src/state.c
@@ -7,6 +7,7 @@
#include "mruby.h"
#include "mruby/irep.h"
#include "mruby/variable.h"
+#include <stdlib.h>
#include <string.h>
void mrb_init_heap(mrb_state*);
diff --git a/src/string.c b/src/string.c
index d474f6f96..32daaa3b5 100644
--- a/src/string.c
+++ b/src/string.c
@@ -6,8 +6,8 @@
#include "mruby.h"
-#include <stdint.h>
#include <stddef.h>
+#include <stdlib.h>
#include <string.h>
#include "mruby/string.h"
#include "mruby/class.h"