瀏覽代碼

Fix outright compiler error in jassimp.cpp

enkore 10 年之前
父節點
當前提交
6b4cbeea40
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 3 1
      port/jassimp/jassimp-native/src/jassimp.cpp
  2. 0 2
      port/jassimp/jassimp-native/src/jassimp.h

+ 3 - 1
port/jassimp/jassimp-native/src/jassimp.cpp

@@ -1379,6 +1379,7 @@ JNIEXPORT jobject JNICALL Java_jassimp_Jassimp_aiImportFile
 	goto end;
 	goto end;
 
 
 error:
 error:
+	{
 	jclass exception = env->FindClass("java/io/IOException");
 	jclass exception = env->FindClass("java/io/IOException");
 
 
 	if (NULL == exception)
 	if (NULL == exception)
@@ -1390,6 +1391,7 @@ error:
 	env->ThrowNew(exception, aiGetErrorString());
 	env->ThrowNew(exception, aiGetErrorString());
 
 
 	lprintf("problem detected\n");
 	lprintf("problem detected\n");
+	}
 
 
 end:
 end:
 	/* 
 	/* 
@@ -1405,4 +1407,4 @@ end:
 	lprintf("return from native\n");
 	lprintf("return from native\n");
 
 
 	return jScene;
 	return jScene;
-}
+}

+ 0 - 2
port/jassimp/jassimp-native/src/jassimp.h

@@ -7,8 +7,6 @@
 #ifdef __cplusplus
 #ifdef __cplusplus
 extern "C" {
 extern "C" {
 #endif
 #endif
-/* Inaccessible static: BUILTIN */
-/* Inaccessible static: s_wrapperProvider */
 /*
 /*
  * Class:     jassimp_Jassimp
  * Class:     jassimp_Jassimp
  * Method:    getErrorString
  * Method:    getErrorString