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:
parent
29e304ea5c
commit
9ec95f9d46
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user