aboutsummaryrefslogtreecommitdiff
path: root/libtcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtcc.c')
-rw-r--r--libtcc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libtcc.c b/libtcc.c
index 61379bc..55ba5a6 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -885,6 +885,7 @@ LIBTCCAPI TCCState *tcc_new(void)
#endif
s->output_type = TCC_OUTPUT_MEMORY;
preprocess_new();
+ s->include_stack_ptr = s->include_stack;
/* we add dummy defines for some special macros to speed up tests
and to have working defined() */