Commit cf5155f8 authored by take_cheeze's avatar take_cheeze

Suppress warning when using readline in mirb.

parent c2bd0d33
...@@ -8,11 +8,7 @@ ...@@ -8,11 +8,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "mruby.h" #include <stdio.h>
#include "mruby/array.h"
#include "mruby/proc.h"
#include "mruby/compile.h"
#include "mruby/string.h"
#ifdef ENABLE_READLINE #ifdef ENABLE_READLINE
#include <readline/readline.h> #include <readline/readline.h>
...@@ -38,6 +34,12 @@ static const char *history_file_name = ".mirb_history"; ...@@ -38,6 +34,12 @@ static const char *history_file_name = ".mirb_history";
char history_path[PATH_MAX]; char history_path[PATH_MAX];
#endif #endif
#include "mruby.h"
#include "mruby/array.h"
#include "mruby/proc.h"
#include "mruby/compile.h"
#include "mruby/string.h"
static void static void
p(mrb_state *mrb, mrb_value obj, int prompt) p(mrb_state *mrb, mrb_value obj, int prompt)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment