From 928514954898ee6c05d0495b0f84ed4e3fd42c71 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Mon, 27 Jun 2016 16:40:00 +0200 Subject: Implement -include cmdline option This option includes a file as if '#include "file"' is the first line of compiled files. It's processed after all -D/-U options and is processed per input file. --- tcc.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index 47af365..1e2b815 100644 --- a/tcc.h +++ b/tcc.h @@ -661,6 +661,10 @@ struct TCCState { char **crt_paths; int nb_crt_paths; + /* -include files */ + char **cmd_include_files; + int nb_cmd_include_files; + /* error handling */ void *error_opaque; void (*error_func)(void *opaque, const char *msg); -- cgit v1.3.1