develooper Front page | perl.perl5.porters | Postings from May 2006

RE: [PATCH] fix 27987 for MSVC (was Re: Smoke [5.9.4] 28020 FAIL(m) MSWin32 Win2000 SP4 (x86/1 cpu))

Thread Previous | Thread Next
From:
Jan Dubois
Date:
May 1, 2006 18:55
Subject:
RE: [PATCH] fix 27987 for MSVC (was Re: Smoke [5.9.4] 28020 FAIL(m) MSWin32 Win2000 SP4 (x86/1 cpu))
Message ID:
08ff01c66d8b$7282e320$2217a8c0@candy
On Sun, 30 Apr 2006, Abe Timmerman wrote:
> 
> It looks like MSVC doesn't provide these, so here's a fix for #27987
>

They are there, but you need to prefix them with an underscore,
so here is a better patch.

Cheers,
-Jan

--- win32/win32.h.orig	Fri Apr 28 08:34:29 2006
+++ win32/win32.h	Mon May 01 18:47:02 2006
@@ -209,6 +209,8 @@
 #define PERL_MEMBER_PTR_SIZE	16
 
 #define isnan		_isnan
+#define snprintf	_snprintf
+#define vsnprintf	_vsnprintf
 
 #if _MSC_VER < 1300
 /* VC6 has broken NaN semantics: NaN == NaN returns true instead of false */
End of patch.



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About