0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-27 07:31:03 +08:00

Problem: build failure with VS <2015, has no snprintf

Solution: use _snprintf when snprintf is not available
This commit is contained in:
Simon Giesecke 2018-02-11 14:33:48 +01:00 committed by Luca Boccassi
parent 29e304ea5c
commit 9ec95f9d46

View File

@ -48,6 +48,10 @@
char error_message_buffer[256];
#if defined(_MSC_VER) && _MSC_VER < 1900
#define snprintf _snprintf
#endif
const char *zmq_errno_message ()
{
snprintf (error_message_buffer, sizeof (error_message_buffer),