mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-28 16:15:23 +08:00
Problem: build failure with VS <2015, has no snprintf
Solution: use _snprintf when snprintf is not available
This commit is contained in:
parent
29e304ea5c
commit
9ec95f9d46
@ -48,6 +48,10 @@
|
|||||||
|
|
||||||
char error_message_buffer[256];
|
char error_message_buffer[256];
|
||||||
|
|
||||||
|
#if defined(_MSC_VER) && _MSC_VER < 1900
|
||||||
|
#define snprintf _snprintf
|
||||||
|
#endif
|
||||||
|
|
||||||
const char *zmq_errno_message ()
|
const char *zmq_errno_message ()
|
||||||
{
|
{
|
||||||
snprintf (error_message_buffer, sizeof (error_message_buffer),
|
snprintf (error_message_buffer, sizeof (error_message_buffer),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user