diff options
author | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-09-22 13:00:05 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-09-22 13:00:05 +0200 |
commit | 3bd8f83f6d412221e4673ceb90b8ca7fa74ff2f1 (patch) | |
tree | f05b41eb05148157558ab858ef196f052af64700 /bindings/java/Socket.cpp | |
parent | a0db7f6b811e687eda452a7de9f5db112f715544 (diff) |
language bindings use zmq_strerror instead of strerror
Diffstat (limited to 'bindings/java/Socket.cpp')
-rw-r--r-- | bindings/java/Socket.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/bindings/java/Socket.cpp b/bindings/java/Socket.cpp index cf6b1de..26c6003 100644 --- a/bindings/java/Socket.cpp +++ b/bindings/java/Socket.cpp @@ -23,8 +23,8 @@ #include <errno.h> #include "../../src/stdint.hpp" +#include "../c/zmq.h" -#include "zmq.h" #include "org_zmq_Socket.h" static jfieldID socket_handle_fid = NULL; @@ -37,14 +37,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); |