remove a compilation warnings for libtest and test3

------------ libtest ------------
    ./libtcc_test lib_path=..
    <string>:11: warning: implicit declaration of function 'printf'
    <string>:13: warning: implicit declaration of function 'add'
    ------------ test3 ------------
    tcctest.c:1982: warning: implicit declaration of function 'putchar'
    tcctest.c:2133: warning: implicit declaration of function 'strlen'
This commit is contained in:
seyko
2015-04-10 06:44:34 +03:00
parent dec959358a
commit 3c372b4c8a
2 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,8 @@ int add(int a, int b)
}
char my_program[] =
"#include <stdio.h> // printf()\n"
"extern int add(int a, int b);\n"
"int fib(int n)\n"
"{\n"
" if (n <= 2)\n"