[libwin32] r544 committed - make sure DllMain() has "C" linkage when compiled with MinGW

1 view
Skip to first unread message

libw...@googlecode.com

unread,
Jan 17, 2011, 6:21:42 PM1/17/11
to libwin32...@googlegroups.com
Revision: 544
Author: dubiously
Date: Mon Jan 17 15:21:10 2011
Log: make sure DllMain() has "C" linkage when compiled with MinGW
http://code.google.com/p/libwin32/source/detail?r=544

Modified:
/trunk/Win32-Daemon/Changes
/trunk/Win32-Daemon/Daemon.pm
/trunk/Win32-Daemon/Daemon.xs
/trunk/Win32-Daemon/META.yml

=======================================
--- /trunk/Win32-Daemon/Changes Thu Oct 14 12:48:51 2010
+++ /trunk/Win32-Daemon/Changes Mon Jan 17 15:21:10 2011
@@ -124,3 +124,7 @@
- avoid CPAN indexing of the packages under test/
- QueryLastMessage() had been renamed to LastControlMessage().
Rename it back to preserve backwards compatibility.
+
+20110117 Jan Dubois
+ - make sure DllMain() has "C" linkage when compiled with MinGW
+ (Haiko Strotbek). [rt#64575]
=======================================
--- /trunk/Win32-Daemon/Daemon.pm Thu Oct 14 12:48:51 2010
+++ /trunk/Win32-Daemon/Daemon.pm Mon Jan 17 15:21:10 2011
@@ -9,7 +9,7 @@

$PACKAGE = $Package = "Win32::Daemon";

-$VERSION = 20101014;
+$VERSION = 20110117;
require Exporter;
require DynaLoader;

@@ -1024,6 +1024,8 @@

=head1 CONTRIBUTORS

+Haiko Strotbek <ha...@strotbek.com>
+
Jan Dubois <ja...@activestate.com>

Marc Pijnappels <marc.pi...@nec-computers.com>
=======================================
--- /trunk/Win32-Daemon/Daemon.xs Thu Oct 14 12:46:09 2010
+++ /trunk/Win32-Daemon/Daemon.xs Mon Jan 17 15:21:10 2011
@@ -911,6 +911,9 @@

/* =============== DLL Specific Functions =================== */
//////////////////////////////////////////////////////////////////
+#if defined(__cplusplus)
+extern "C"
+#endif
BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID
lpvReserved )
{
BOOL fResult = TRUE;
=======================================
--- /trunk/Win32-Daemon/META.yml Thu Oct 14 12:48:51 2010
+++ /trunk/Win32-Daemon/META.yml Mon Jan 17 15:21:10 2011
@@ -1,7 +1,7 @@
--- #YAML:1.0
name: Win32-Daemon
abstract: Enabling Win32 Perl scripts to run as a true Win32 services.
-version: 20101014
+version: 20110117
author:
- Dave Roth
- libwin32 project <libw...@perl.org>

Reply all
Reply to author
Forward
0 new messages