fixed a bug (placement of opening brace of class definitions)
[ginac.git] / ginsh / ginsh_lexer.ll
index 973d8951c5b0992fd47c0fce069ccd7e1203e1c2..4194f94337af97e8ecfa155cee9c34a3c892ac61 100644 (file)
@@ -132,7 +132,11 @@ static char *line_ptr;
 static int ginsh_input(char *buf, int max_size)
 {
        int result;
+#if defined(YY_CURRENT_BUFFER)
+       if (YY_CURRENT_BUFFER->yy_is_interactive) {
+#else
        if (yy_current_buffer->yy_is_interactive) {
+#endif
 #ifdef HAVE_LIBREADLINE
                // Do we need to read a new line?
                int actual;