Skip to content

Commit

Permalink
move includes up
Browse files Browse the repository at this point in the history
  • Loading branch information
YSaxon committed Jun 14, 2024
1 parent fc72dd4 commit 9904333
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@

#include "shims.h"


#ifdef __ANDROID__
#include <jni.h>
#include <dlfcn.h>
#include "FalsoJNI.h"
#include "FalsoJNI_Impl.h"
#include "FalsoJNI_ImplBridge.h"
#endif

const char* NAME = "cliffi";
const char* VERSION = "v1.12.5";
const char* BASIC_USAGE_STRING = "<library> <return_typeflag> <function_name> [[-typeflag] <arg>.. [ ... <varargs>..] ]\n";
Expand Down Expand Up @@ -539,8 +548,6 @@ void parseHexdump(char* hexdumpCommand) {
#ifdef __ANDROID__

// adapted from https://github.com/rednaga/native-shim
#include <jni.h>
#include <dlfcn.h>

typedef int(*JNI_CreateJavaVM_t)(JavaVM **p_vm, JNIEnv **p_env, void *vm_args);
typedef jint(*registerNatives_t)(JNIEnv *env, jclass clazz);
Expand Down Expand Up @@ -600,9 +607,7 @@ typedef int (*JNI_OnLoadFunc)(void* vm, void* reserved);
// return 0;
// }

#include "FalsoJNI.h"
#include "FalsoJNI_Impl.h"
#include "FalsoJNI_ImplBridge.h"


int init_jvm(JavaVM **p_vm, JNIEnv **p_env, size_t argc, char** argv){
if (argc > 0) {
Expand Down

0 comments on commit 9904333

Please sign in to comment.