+2003-03-15 Neil Booth <neil@daikokuya.co.uk>
+
+ * fix-header.c (read_scan_file): Read main file before handling -D.
+
2003-03-15 Roger Sayle <roger@eyesopen.com>
* c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
options->inhibit_warnings = 1;
options->inhibit_errors = 1;
+ if (! cpp_read_main_file (scan_in, in_fname, NULL))
+ exit (FATAL_EXIT_CODE);
+
for (i = 0; i < argc; i += strings_processed)
{
strings_processed = 0;
register_include_chains (scan_in, NULL /* sysroot */, NULL /* iprefix */,
true /* stdinc */, false /* cxx_stdinc */,
false /* verbose */);
- if (! cpp_read_main_file (scan_in, in_fname, NULL))
- exit (FATAL_EXIT_CODE);
cpp_rename_file (scan_in, "<built-in>");
cpp_init_builtins (scan_in);