fix missing filename in macro warning

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8189 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-02 17:43:58 +00:00
commit 3a0ad64776

View file

@ -271,13 +271,16 @@ static String *
Swig_include_any(const String_or_char *name, int sysfile) {
FILE *f;
String *str;
String *file;
f = Swig_open_any(name, sysfile);
if (!f) return 0;
str = Swig_read_file(f);
fclose(f);
Seek(str,0,SEEK_SET);
Setfile(str,lastpath);
file = Copy(lastpath);
Setfile(str,file);
Delete(file);
Setline(str,1);
return str;
}