From ed5a4bbb63b7de8de5616cd62a8ed2e03cff009c Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Fri, 28 Nov 2003 23:08:14 +0000 Subject: [PATCH] Director fix for #include "xxxx_wrap.h". Was incorrectly adding a directory in some situations. See #848335. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5438 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Modules/python.cxx | 2 +- Source/Modules/ruby.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx index 9a4ffd162..cf452c7ba 100644 --- a/Source/Modules/python.cxx +++ b/Source/Modules/python.cxx @@ -226,7 +226,7 @@ public: Printf(f_directors, "/* ---------------------------------------------------\n"); Printf(f_directors, " * C++ director class methods\n"); Printf(f_directors, " * --------------------------------------------------- */\n\n"); - Printf(f_directors, "#include \"%s\"\n\n", outfile_h); + Printf(f_directors, "#include \"%s\"\n\n", Swig_file_filename(outfile_h)); } /* If shadow classing is enabled, we're going to change the module name to "_module" */ diff --git a/Source/Modules/ruby.cxx b/Source/Modules/ruby.cxx index 175c6e498..63f4f67b9 100644 --- a/Source/Modules/ruby.cxx +++ b/Source/Modules/ruby.cxx @@ -416,7 +416,7 @@ public: Printf(f_directors, "/* ---------------------------------------------------\n"); Printf(f_directors, " * C++ director class methods\n"); Printf(f_directors, " * --------------------------------------------------- */\n\n"); - Printf(f_directors, "#include \"%s\"\n\n", outfile_h); + Printf(f_directors, "#include \"%s\"\n\n", Swig_file_filename(outfile_h)); } Printf(f_header,"#define SWIG_init Init_%s\n", feature);