From 7ee1dec92d5d5eb307aa416eff2b5a3098fb85c3 Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Tue, 11 Jan 2000 21:06:13 +0000 Subject: [PATCH] Fixed minor bug with %include git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@38 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Preprocessor/cpp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/SWIG/Source/Preprocessor/cpp.c b/SWIG/Source/Preprocessor/cpp.c index 78ad5f100..adacfdba0 100644 --- a/SWIG/Source/Preprocessor/cpp.c +++ b/SWIG/Source/Preprocessor/cpp.c @@ -367,6 +367,7 @@ get_filename(DOH *str) { } else { Putc(c,fn); while (((c = Getc(str)) != EOF) && (!isspace(c))) Putc(c,fn); + if (isspace(c)) Ungetc(c,str); } Seek(fn,0,SEEK_SET); return fn;