diff options
author | Ray Johnston <ray.johnston@artifex.com> | 2015-07-29 07:17:58 -0700 |
---|---|---|
committer | Ray Johnston <ray.johnston@artifex.com> | 2015-07-30 11:39:48 -0700 |
commit | ab674af32798e8b7ce46bb093acfe756d226cdf6 (patch) | |
tree | ab355f3507295060d5c8105336869681589c481a /base/stdio_.h | |
parent | 56045937000ea510c40347bc921a287624ea502d (diff) | |
download | ghostpdl-ab674af32798e8b7ce46bb093acfe756d226cdf6.tar.gz |
Fixes for Windows build with VS 2015.
Apparently snprintf is now available (since VS2014), and we need to
make sure and undef bool to avoid conflicts.
Diffstat (limited to 'base/stdio_.h')
-rw-r--r-- | base/stdio_.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/base/stdio_.h b/base/stdio_.h index 66c945839..6aa7f465b 100644 --- a/base/stdio_.h +++ b/base/stdio_.h @@ -73,9 +73,12 @@ int unlink(const char *); # if _MSC_VER < 1500 /* VS 2008 has vsnprintf */ # define vsnprintf _vsnprintf # endif +# if _MSC_VER<1900 /* Microsoft Visual C++ 2005 doesn't properly define snprintf */ -int snprintf(char *buffer, size_t count, const char *format , ...); -#endif +/* But, finally, with VS 2014 and above, Microsoft has snprintf */ + int snprintf(char *buffer, size_t count, const char *format , ...); +# endif +#endif /* _MSC_VER */ /* for our non-localizing (v)s(n)printf() functions */ /* only *really* required for floating point conversions */ |