Skip to content

Commit

Permalink
Don't redefine snprintf() for MSVC 14 in libtiff.
Browse files Browse the repository at this point in the history
This MSVC version does add snprintf(), finally, and doesn't allow
pre-#defining it before including its stdio.h, so don't do this.

See #16854.
  • Loading branch information
vadz committed May 8, 2015
1 parent a31e8e4 commit 0a41db1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tiff/libtiff/tif_config.h
Expand Up @@ -364,7 +364,10 @@
/* Set the native cpu bit order */
#define HOST_FILLORDER FILLORDER_LSB2MSB

#define snprintf _snprintf
/* MSVC 14 does have snprintf() and doesn't allow defining it */
#if !defined(_MSC_VER) || _MSC_VER < 1900
# define snprintf _snprintf
#endif

/* Define to 1 if your processor stores words with the most significant byte
first (like Motorola and SPARC, unlike Intel and VAX). */
Expand Down

0 comments on commit 0a41db1

Please sign in to comment.