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