Permalink
Browse files

[rt #71642] make vsnprintf() available on Win32

  • Loading branch information...
1 parent 81409c5 commit 336ce47410229b8bbd113af1b9b371dafa748e83 @tonycoz committed Oct 17, 2011
Showing with 15 additions and 0 deletions.
  1. +6 −0 Changes
  2. +9 −0 imdatatypes.h
View
6 Changes
@@ -60,6 +60,12 @@ Bug fixes:
perl could order it differently.
https://rt.cpan.org/Ticket/Display.html?id=71675
+ - we rely on Config.pm's d_vsnprintf as to whether we use
+ vsnprintf/snprintf, which is defined in the Win32 Config.pm even
+ though it only has _ prefixed versions of these. Define our own
+ prefixed names on Win32.
+ https://rt.cpan.org/Ticket/Display.html?id=71642
+
Imager 0.85_01 - 10 Oct 2011
==============
View
9 imdatatypes.h
@@ -669,6 +669,15 @@ typedef struct i_render_tag i_render;
#define I_FORMAT_ATTR(format_index, va_index)
#endif
+#ifdef _MSC_VER
+# ifndef vsnprintf
+# define vsnprintf _vsnprintf
+# endif
+# ifndef snprintf
+# define snprintf _snprintf
+# endif
+#endif
+
/*
=item i_DF
=category Data Types

0 comments on commit 336ce47

Please sign in to comment.