Skip to content

Commit

Permalink
Patched to compile.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 18, 2009
1 parent 9ceb485 commit 032af5d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mojoshader_preprocessor.c
Expand Up @@ -694,7 +694,7 @@ static int require_newline(IncludeState *state)
{
const Token token = lexer(state);
pushback(state); // rewind no matter what.
return ( (token == TOKEN_INCOMPLETE_COMMENT) // call it an eol.
return ( (token == TOKEN_INCOMPLETE_COMMENT) || // call it an eol.
(token == ((Token) '\n')) || (token == TOKEN_EOI) );
} // require_newline

Expand Down Expand Up @@ -884,11 +884,9 @@ static void handle_pp_define(Context *ctx)
init_buffer(&buffer);

int done = 0;
const char *source = NULL;
state->report_whitespace = 1;
while ((!done) && (!ctx->out_of_memory))
{
bytes_left = state->bytes_left;
const Token token = lexer(state);
switch (token)
{
Expand Down

0 comments on commit 032af5d

Please sign in to comment.