aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@celest.fr>2011-07-07 10:36:38 +0200
committerThomas Preud'homme <thomas.preudhomme@celest.fr>2011-07-07 12:10:57 +0200
commit4d6a4a26e08ef8581c70d29f578a42ab7d738c2d (patch)
treef7919143ec0132e962a29b0840215a396d9124ff /tcc.h
parenta6775fc1544c23d9d1c265f143b5aafc3b906082 (diff)
downloadtinycc-4d6a4a26e08ef8581c70d29f578a42ab7d738c2d.tar.gz
tinycc-4d6a4a26e08ef8581c70d29f578a42ab7d738c2d.tar.bz2
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.
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tcc.h b/tcc.h
index 686b3c5..c3c1031 100644
--- a/tcc.h
+++ b/tcc.h
@@ -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