Add configuration of include subdirectories

Add the possibility to search headers in several subdirectories of
/usr/local/include and /usr/include. A possible use case would be for
tcc to search for headers in /usr/local/include/x86_64-linux-gnu,
/usr/local/include, /usr/include/x86_64-linux-gnu and /usr/include in
turn.
This commit is contained in:
Thomas Preud'homme
2011-07-07 10:36:38 +02:00
parent a6775fc154
commit 4d6a4a26e0
2 changed files with 20 additions and 2 deletions

3
tcc.h
View File

@ -150,6 +150,9 @@ typedef int BOOL;
#endif
#endif
#define CONFIG_TCC_CRT_PREFIX CONFIG_SYSROOT "/usr" CONFIG_TCC_LDDIR
#ifndef CONFIG_TCC_INCSUBDIR
#define CONFIG_TCC_INCSUBDIR ""
#endif
#define INCLUDE_STACK_SIZE 32
#define IFDEF_STACK_SIZE 64