|
From: Elias N. <eli...@us...> - 2004-03-27 14:30:04
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/macosx In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27652/src/native/macosx Modified Files: hid.cpp org_lwjgl_Sys.cpp Log Message: Implemented version check to check for incompatible native libraries Index: hid.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/macosx/hid.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- hid.cpp 29 Jan 2004 20:53:00 -0000 1.6 +++ hid.cpp 27 Mar 2004 14:09:55 -0000 1.7 @@ -202,7 +202,7 @@ long usage_page; if (getDictLong(dev_props, CFSTR(kIOHIDPrimaryUsageKey), &usage) && getDictLong(dev_props, CFSTR(kIOHIDPrimaryUsagePageKey), &usage_page)) { - if (ISDEBUGENABLED()) { + if (isDebugEnabled()) { printf("Considering device '"); printProperty(dev_props, CFSTR(kIOHIDProductKey)); printf("', usage page %ld usage %ld\n", usage_page, usage); Index: org_lwjgl_Sys.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/macosx/org_lwjgl_Sys.cpp,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- org_lwjgl_Sys.cpp 20 Dec 2003 22:23:15 -0000 1.13 +++ org_lwjgl_Sys.cpp 27 Mar 2004 14:09:55 -0000 1.14 @@ -88,6 +88,10 @@ return hires_timer; } +JNIEXPORT jstring JNICALL Java_org_lwjgl_Sys_getNativeLibraryVersion(JNIEnv *env, jclass clazz) { + return getVersionString(env); +} + /* * Class: org_lwjgl_Sys * Method: setTime |