preprocessor: output '3' flag for system headers
authorMatthias Braun <matze@braunis.de>
Mon, 18 Jun 2012 23:12:51 +0000 (01:12 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Fri, 6 Jul 2012 11:08:21 +0000 (13:08 +0200)
preprocessor.c

index 0bd535e..4c5f1d4 100644 (file)
@@ -1383,6 +1383,9 @@ static void print_line_directive(const source_position_t *pos, const char *add)
                fputc(' ', out);
                fputs(add, out);
        }
+       if (pos->is_system_header) {
+               fputs(" 3", out);
+       }
 
        printed_input_name = pos->input_name;
        input.output_line  = pos->lineno-1;