summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorJan Jezabek <jezabek@poczta.onet.pl>2008-08-13 23:15:11 +0000
committerJan Jezabek <jezabek@poczta.onet.pl>2008-08-13 23:15:11 +0000
commit15ab8ba5f34fb281a115c46a4601f4fd4d728fcf (patch)
treec69a384ea1fe8945703ae5745d399051e48fbb81 /Lib
parent607dc75d3501a4fa02d1a771e4066073a7a866ae (diff)
downloadswig-15ab8ba5f34fb281a115c46a4601f4fd4d728fcf.tar.gz
Minor fix - DllMain was not working with C89 compilers. Changed configure.in to support Digital Mars C++ for the test-suite.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-jezabek@10758 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib')
-rw-r--r--Lib/com/com.swg4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/com/com.swg b/Lib/com/com.swg
index 247b469c2..10d1825f3 100644
--- a/Lib/com/com.swg
+++ b/Lib/com/com.swg
@@ -1031,10 +1031,10 @@ extern "C"
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason,
LPVOID lpvReserved) {
if (fdwReason == DLL_PROCESS_ATTACH) {
- SWIGModule = hinstDLL;
-
HRESULT hres = S_OK;
+ SWIGModule = hinstDLL;
+
#ifdef __WINE__
/*
* Wine has a broken implementation of GetModuleFileName, which does not