--- a/test/hotspot/jtreg/vmTestbase/nsk/stress/jni/libjnistress005.cpp Mon Sep 17 15:25:42 2018 -0700
+++ b/test/hotspot/jtreg/vmTestbase/nsk/stress/jni/libjnistress005.cpp Mon Sep 17 19:36:09 2018 -0700
@@ -25,9 +25,7 @@
#include <stdio.h>
#include <stdlib.h>
-#ifdef __cplusplus
extern "C" {
-#endif
#define CHECK_EXCEPTION { if (env->ExceptionOccurred()) { fprintf(stderr, "Unexpected exception:\n"); env->ExceptionDescribe(); env->ExceptionClear(); exit(97); } }
@@ -114,6 +112,4 @@
/* printf("JNI: count %d\n", Exceptcalls); */
}
-#ifdef __cplusplus
}
-#endif