From 163bda978ba27417590d95ef867db4ee08b2f0f2 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Thu, 2 Mar 2006 22:14:39 +0000 Subject: [PATCH] Fix DllExport - it is a leftover from the C# module and should not be used. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8931 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/modula3/modula3head.swg | 7 ------- SWIG/Source/Modules/modula3.cxx | 4 ++-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/SWIG/Lib/modula3/modula3head.swg b/SWIG/Lib/modula3/modula3head.swg index 8cdec08e0..af96a78d1 100644 --- a/SWIG/Lib/modula3/modula3head.swg +++ b/SWIG/Lib/modula3/modula3head.swg @@ -9,13 +9,6 @@ #include #include #include -#ifndef DllExport -# ifdef WIN32 -# define DllExport __declspec( dllexport ) -# else -# define DllExport -# endif -#endif %} #if 0 diff --git a/SWIG/Source/Modules/modula3.cxx b/SWIG/Source/Modules/modula3.cxx index bdfb4ad4f..9d531d6b0 100644 --- a/SWIG/Source/Modules/modula3.cxx +++ b/SWIG/Source/Modules/modula3.cxx @@ -1384,7 +1384,7 @@ MODULA3 (): Wrapper_add_localv (f, "cresult", c_return_type, "cresult = 0", NIL); } - Printv (f->def, " DllExport ", c_return_type, " ", wname, "(", NIL); + Printv (f->def, " SWIGEXPORT ", c_return_type, " ", wname, "(", NIL); // Emit all of the local variables for holding arguments. emit_args (t, l, f); @@ -2486,7 +2486,7 @@ MODULA3 (): Replaceall (m3raw_cppcasts_code, "$baseclass", baseclass); Printv (upcasts_code, - "DllExport long Modula3_$imclazznameTo$imbaseclass", + "SWIGEXPORT long Modula3_$imclazznameTo$imbaseclass", "(long objectRef) {\n", " long baseptr = 0;\n" " *($cbaseclass **)&baseptr = *($cclass **)&objectRef;\n"