Define snprintf as _snprintf for older MSVC compilers.
This commit is contained in:
parent
0440a8e72a
commit
0cfea16397
|
@ -82,6 +82,10 @@ regerror() buffer.
|
||||||
17. Fixed typo ("&&" for "&") in pcre2_study(). Fortunately, this could not
|
17. Fixed typo ("&&" for "&") in pcre2_study(). Fortunately, this could not
|
||||||
actually affect anything, by sheer luck.
|
actually affect anything, by sheer luck.
|
||||||
|
|
||||||
|
18. Two minor fixes for MSVC compilation: (a) removal of apparently incorrect
|
||||||
|
"const" qualifiers in pcre2test and (b) defining snprintf as _snprintf for
|
||||||
|
older MSVC compilers.
|
||||||
|
|
||||||
|
|
||||||
Version 10.21 12-January-2016
|
Version 10.21 12-January-2016
|
||||||
-----------------------------
|
-----------------------------
|
||||||
|
|
|
@ -73,6 +73,14 @@ typedef int BOOL;
|
||||||
#include <valgrind/memcheck.h>
|
#include <valgrind/memcheck.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Older versions of MSVC lack snprintf(). This define allows for
|
||||||
|
warning/error-free compilation and testing with MSVC compilers back to at least
|
||||||
|
MSVC 10/2010. Except for VC6 (which is missing some fundamentals and fails). */
|
||||||
|
|
||||||
|
#if defined(_MSC_VER) && (_MSC_VER < 1900)
|
||||||
|
#define snprintf _snprintf
|
||||||
|
#endif
|
||||||
|
|
||||||
/* When compiling a DLL for Windows, the exported symbols have to be declared
|
/* When compiling a DLL for Windows, the exported symbols have to be declared
|
||||||
using some MS magic. I found some useful information on this web page:
|
using some MS magic. I found some useful information on this web page:
|
||||||
http://msdn2.microsoft.com/en-us/library/y4h7bcy6(VS.80).aspx. According to the
|
http://msdn2.microsoft.com/en-us/library/y4h7bcy6(VS.80).aspx. According to the
|
||||||
|
|
Loading…
Reference in New Issue