mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-30 21:50:49 +01:00
language bindings use zmq_strerror instead of strerror
This commit is contained in:
@@ -22,7 +22,8 @@
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "zmq.h"
|
||||
#include "../c/zmq.h"
|
||||
|
||||
#include "org_zmq_Context.h"
|
||||
|
||||
static jfieldID ctx_handle_fid = NULL;
|
||||
@@ -34,14 +35,7 @@ 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
|
||||
const char *err_msg = zmq_strerror (err);
|
||||
|
||||
// Raise the exception.
|
||||
int rc = env->ThrowNew (exception_class, err_msg);
|
||||
|
||||
Reference in New Issue
Block a user