diff --git a/bindings/java/src/jni/javasigar.c b/bindings/java/src/jni/javasigar.c index c75c9ff09..4bcdcefeb 100644 --- a/bindings/java/src/jni/javasigar.c +++ b/bindings/java/src/jni/javasigar.c @@ -187,13 +187,8 @@ static void *sigar_get_pointer(JNIEnv *env, jobject obj) { jfieldID pointer_field; jclass cls = JENV->GetObjectClass(env, obj); -#ifdef SIGAR_POINTER_LONG pointer_field = JENV->GetFieldID(env, cls, "longSigarWrapper", "J"); return (void *)JENV->GetLongField(env, obj, pointer_field); -#else - pointer_field = JENV->GetFieldID(env, cls, "sigarWrapper", "I"); - return (void *)JENV->GetIntField(env, obj, pointer_field); -#endif } static jni_sigar_t *sigar_get_jpointer(JNIEnv *env, jobject obj) { @@ -218,13 +213,8 @@ static void sigar_set_pointer(JNIEnv *env, jobject obj, const void *ptr) { jfieldID pointer_field; jclass cls = JENV->GetObjectClass(env, obj); -#ifdef SIGAR_POINTER_LONG pointer_field = JENV->GetFieldID(env, cls, "longSigarWrapper", "J"); JENV->SetLongField(env, obj, pointer_field, (jlong)ptr); -#else - pointer_field = JENV->GetFieldID(env, cls, "sigarWrapper", "I"); - JENV->SetIntField(env, obj, pointer_field, (int)ptr); -#endif } /* for jni/win32 */ diff --git a/sigar-amd64-winnt.dll b/sigar-amd64-winnt.dll new file mode 100644 index 000000000..a2da029dd Binary files /dev/null and b/sigar-amd64-winnt.dll differ