include picrin's headers before editlines' so as they can refer <stdio>

This commit is contained in:
Sunrim KIM (keen) 2014-08-11 23:10:27 +09:00
parent 9b390a58d3
commit 5097c522e8
1 changed files with 5 additions and 5 deletions

View File

@ -5,6 +5,11 @@
/* This will include all our libedit functions. If you use C++ don't
forget to use the C++ extern "C" to get it to compile.
*/
#include "picrin.h"
#include "picrin/pair.h"
#include "picrin/string.h"
#include "picrin/port.h"
#if PIC_READLINE_INCLUDE_DIR_SUFFIX == readline
#include <readline/readline.h>
#include <readline/history.h>
@ -12,11 +17,6 @@ forget to use the C++ extern "C" to get it to compile.
#include <editline/readline.h>
#include <editline/history.h>
#endif
#include "picrin.h"
#include "picrin/pair.h"
#include "picrin/string.h"
#include "picrin/port.h"
static pic_value
pic_rl_readline(pic_state *pic)