From 521909e65adae8e64a94ae96f7f82c0f0b8199da Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Thu, 18 Apr 2013 11:35:58 +0300 Subject: [PATCH] Updated Windows native "openPort()" function signature, and function comment --- src/cpp/windows/jssc.c++ | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cpp/windows/jssc.c++ b/src/cpp/windows/jssc.c++ index 170e6df..c1e9f1b 100644 --- a/src/cpp/windows/jssc.c++ +++ b/src/cpp/windows/jssc.c++ @@ -27,12 +27,14 @@ #include #include "../jssc_SerialNativeInterface.h" -#include +//#include /* * Port opening. + * + * In 2.2.0 added useTIOCEXCL (not used only for compatibility with _nix version) */ -JNIEXPORT jint JNICALL Java_jssc_SerialNativeInterface_openPort(JNIEnv *env, jobject object, jstring portName){ +JNIEXPORT jint JNICALL Java_jssc_SerialNativeInterface_openPort(JNIEnv *env, jobject object, jstring portName, jboolean useTIOCEXCL){ char prefix[] = "\\\\.\\"; const char* port = env->GetStringUTFChars(portName, JNI_FALSE);