aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-lang.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-lang.c')
-rw-r--r--gcc/c-lang.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/c-lang.c b/gcc/c-lang.c
index 8a5fd6b..6e04bd7 100644
--- a/gcc/c-lang.c
+++ b/gcc/c-lang.c
@@ -28,6 +28,10 @@ Boston, MA 02111-1307, USA. */
#include "toplev.h"
#include "output.h"
+#if USE_CPPLIB
+extern char *yy_cur;
+#endif
+
/* Each of the functions defined here
is an alternative to a function in objc-actions.c. */
@@ -47,12 +51,15 @@ lang_init_options ()
void
lang_init ()
{
-#if !USE_CPPLIB
/* the beginning of the file is a new line; check for # */
/* With luck, we discover the real source file's name from that
and put it in input_filename. */
+#if !USE_CPPLIB
ungetc (check_newline (), finput);
-#endif
+#else
+ check_newline ();
+ yy_cur--;
+#endif
}
void