From 3bd8f83f6d412221e4673ceb90b8ca7fa74ff2f1 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Tue, 22 Sep 2009 13:00:05 +0200 Subject: language bindings use zmq_strerror instead of strerror --- bindings/java/Context.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'bindings/java/Context.cpp') diff --git a/bindings/java/Context.cpp b/bindings/java/Context.cpp index d2138c3..652a120 100644 --- a/bindings/java/Context.cpp +++ b/bindings/java/Context.cpp @@ -22,7 +22,8 @@ #include #include -#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); -- cgit v1.2.3