Include string.h and stdlib.h at all time.

Even if readline support is disabled, some functions declared in
string.h and stdlib.h are used. (e.g. strlen and exit)

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
This commit is contained in:
OGINO Masanori 2013-12-18 13:21:26 +09:00
parent fbe9bb7a38
commit 61f0852b82
1 changed files with 2 additions and 2 deletions

View File

@ -1,12 +1,12 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "picrin.h"
#include "picrin/pair.h"
#if PIC_ENABLE_READLINE
# include <string.h>
# include <stdlib.h>
# include <readline/readline.h>
# include <readline/history.h>
#endif