mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-23 16:48:08 +02:00
win port of java binding + java perf tests
This commit is contained in:
@@ -34,7 +34,14 @@ static void raise_exception (JNIEnv *env, int err)
|
||||
assert (exception_class);
|
||||
|
||||
// Get text description of the exception.
|
||||
#if defined _MSC_VER
|
||||
#pragma warning (push)
|
||||
#pragma warning (disable:4996)
|
||||
#endif
|
||||
const char *err_msg = strerror (err);
|
||||
#if defined _MSC_VER
|
||||
#pragma warning (pop)
|
||||
#endif
|
||||
|
||||
// Raise the exception.
|
||||
int rc = env->ThrowNew (exception_class, err_msg);
|
||||
|
Reference in New Issue
Block a user