Fix build problems introduced by r18788
[reactos.git] / reactos / tools / wpp / ppl.l
index f4f8bc1..37f6c28 100644 (file)
@@ -163,7 +163,7 @@ ul  [uUlL]|[uUlL][lL]|[lL][uU]|[lL][lL][uU]|[uU][lL][lL]|[lL][uU][lL]
 #include <assert.h>
 
 #include "wpp_private.h"
-#include "wpp.tab.h"
+#include "ppy.tab.h"
 
 /*
  * Make sure that we are running an appropriate version of flex.
@@ -1448,7 +1448,7 @@ void pp_do_include(char *fname, int type)
        /* Undo the effect of the quotation */
        fname[n-1] = '\0';
 
-       if((ppin = pp_open_include(fname+1, type, &newpath)) == NULL)
+       if((ppin = pp_open_include(fname+1, type ? pp_status.input : NULL, &newpath, type)) == NULL)
                pperror("Unable to open include file %s", fname+1);
 
        fname[n-1] = *fname;    /* Redo the quotes */