git.samba.org
/
third_party
/
zlib
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25e4a3d
)
Use _snprintf for snprintf under Microsoft C in test/minigzip.c.
author
Mark Adler
<madler@alumni.caltech.edu>
Sun, 3 Jun 2012 23:28:06 +0000
(16:28 -0700)
committer
Mark Adler
<madler@alumni.caltech.edu>
Sun, 3 Jun 2012 23:28:40 +0000
(16:28 -0700)
test/minigzip.c
patch
|
blob
|
history
diff --git
a/test/minigzip.c
b/test/minigzip.c
index 0a1f81f770f5ab79d2354900051a4f20115432ec..b3025a489a91b4cf986e8873705dd276b44ad129 100644
(file)
--- a/
test/minigzip.c
+++ b/
test/minigzip.c
@@
-40,6
+40,10
@@
# define SET_BINARY_MODE(file)
#endif
+#ifdef _MSC_VER
+# define snprintf _snprintf
+#endif
+
#ifdef VMS
# define unlink delete
# define GZ_SUFFIX "-gz"