breakgen for 64-bit

This commit is contained in:
Dmitry Jemerov
2009-11-25 18:39:02 +03:00
parent 6efe77afa2
commit ce4816b614
3 changed files with 7 additions and 2 deletions
Binary file not shown.
@@ -39,7 +39,12 @@ public class AppMain {
final String osName = System.getProperty("os.name").toLowerCase();
String libPath = null;
if (osName.startsWith("windows")) {
libPath = binPath + "breakgen.dll";
if (System.getProperty("os.arch").equals("amd64")) {
libPath = binPath + "breakgen64.dll";
}
else {
libPath = binPath + "breakgen.dll";
}
} else if (osName.startsWith("linux")) {
if (System.getProperty("os.name").toLowerCase().equals("amd64")) {
libPath = binPath + "libbreakgen64.so";
+1 -1
View File
@@ -14,10 +14,10 @@
* limitations under the License.
*/
#include <jni.h>
#if defined(WIN32)
#include <windows.h>
#else
#include <jni.h>
#include <signal.h>
#include <unistd.h>
#include <stdlib.h>