aboutsummaryrefslogtreecommitdiff
path: root/libcpp/directives.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcpp/directives.c')
-rw-r--r--libcpp/directives.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libcpp/directives.c b/libcpp/directives.c
index 38ca949..7f72162 100644
--- a/libcpp/directives.c
+++ b/libcpp/directives.c
@@ -698,7 +698,11 @@ parse_include (cpp_reader *pfile, int *pangle_brackets,
return NULL;
}
- if (buf == NULL || CPP_OPTION (pfile, discard_comments))
+ if (pfile->directive == &dtable[T_PRAGMA])
+ {
+ /* This pragma allows extra tokens after the file name. */
+ }
+ else if (buf == NULL || CPP_OPTION (pfile, discard_comments))
check_eol (pfile);
else
{