From 436b0cafc08797ca449f6998badc1af2cccf5b49 Mon Sep 17 00:00:00 2001 From: "zik.saleeba" Date: Thu, 12 Mar 2009 20:44:50 +0000 Subject: [PATCH] Conditional support for #include for surveyor git-svn-id: http://picoc.googlecode.com/svn/trunk@202 21eae674-98b7-11dd-bd71-f92a316d2d60 --- parse.c | 2 ++ platform.h | 1 + 2 files changed, 3 insertions(+) diff --git a/parse.c b/parse.c index f879f93..fe21638 100644 --- a/parse.c +++ b/parse.c @@ -371,6 +371,7 @@ int ParseStatement(struct ParseState *Parser) CheckTrailingSemicolon = FALSE; break; +#ifndef NO_HASH_INCLUDE case TokenHashInclude: { struct Value *LexerValue; @@ -381,6 +382,7 @@ int ParseStatement(struct ParseState *Parser) CheckTrailingSemicolon = FALSE; break; } +#endif case TokenSwitch: if (LexGetToken(Parser, NULL, TRUE) != TokenOpenBracket) diff --git a/platform.h b/platform.h index dfd1d75..4fd24ec 100644 --- a/platform.h +++ b/platform.h @@ -48,6 +48,7 @@ # ifdef SURVEYOR_HOST # define NO_FP # define NO_CTYPE +# define NO_HASH_INCLUDE # include # include "../string.h" # include "../print.h"