Skip to content

Commit

Permalink
Suppress macro expansion for including system header
Browse files Browse the repository at this point in the history
  • Loading branch information
tyfkda committed Dec 1, 2023
1 parent 7ee8616 commit 6a0b111
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cpp/preprocessor.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,10 @@ static FILE *search_sysinc(const char *prevdir, const char *path, char **pfn) {
}

static void handle_include(const char *p, Stream *stream, bool is_next) {
const char *orgp = p = preprocess_one_line(p, stream, NULL);;
const char *orgp = p = skip_whitespaces(p);

if (*p != '<')
p = preprocess_one_line(p, stream, NULL);;
char close;
bool sys = false;

Expand Down

0 comments on commit 6a0b111

Please sign in to comment.