From c48aeeb69bbe5a8c7c262f3539f78acbcfdc50e1 Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Sun, 9 Jul 2000 21:40:58 +0000 Subject: [PATCH] Fixed problem in Preprocessor_define() when called with string literals. (This is what was causing the SWIG symbol to disappear). git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@545 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 c2a835fe3..aa7a917d9 100644 --- a/SWIG/Source/Preprocessor/cpp.c +++ b/SWIG/Source/Preprocessor/cpp.c @@ -147,6 +147,7 @@ DOHHash *Preprocessor_define(DOHString_or_char *str, int swigmacro) str = s; } else { str = NewString((char *) str); + Seek(str,0,SEEK_SET); } line = Getline(str); file = Getfile(str);