diff --git a/tests/test_security_curve.cpp b/tests/test_security_curve.cpp index 5f57e228..6658f384 100644 --- a/tests/test_security_curve.cpp +++ b/tests/test_security_curve.cpp @@ -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),