language bindings use zmq_strerror instead of strerror

This commit is contained in:
Martin Sustrik
2009-09-22 13:00:05 +02:00
parent a0db7f6b81
commit 3bd8f83f6d
5 changed files with 25 additions and 45 deletions

View File

@@ -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);