mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 11:24:27 +01:00
Global: Add some defs for MSVC highlighting.
Just want this file not to be a sea of errors. Before it said ifs etc. were wrong too, because it didn't think things were functions.
This commit is contained in:
1 parent
f23dd7635c
commit
b1ae90dd03
1 file changed
+31
@@ -14,9 +14,40 @@
|
||||
#include <thread>
|
||||
#include <atomic>
|
||||
|
||||
#ifndef _MSC_VER
|
||||
#include <jni.h>
|
||||
#include <android/log.h>
|
||||
#include <android/native_window_jni.h>
|
||||
#elif !defined(JNIEXPORT)
|
||||
// Just for better highlighting in MSVC if opening this file.
|
||||
// Not having types makes it get confused and say everything is wrong.
|
||||
struct JavaVM;
|
||||
typedef void *jmethodID;
|
||||
typedef void *jfieldID;
|
||||
|
||||
typedef uint8_t jboolean;
|
||||
typedef int8_t jbyte;
|
||||
typedef int16_t jshort;
|
||||
typedef int32_t jint;
|
||||
typedef int64_t jlong;
|
||||
typedef jint jsize;
|
||||
typedef float jfloat;
|
||||
typedef double jdouble;
|
||||
|
||||
class _jobject {};
|
||||
class _jclass : public _jobject {};
|
||||
typedef _jobject *jobject;
|
||||
typedef _jclass *jclass;
|
||||
typedef jobject jstring;
|
||||
typedef jobject jbyteArray;
|
||||
|
||||
struct JNIEnv {};
|
||||
|
||||
#define JNIEXPORT
|
||||
#define JNICALL
|
||||
// Just a random value to make MSVC highlighting happy.
|
||||
#define JNI_VERSION_1_6 16
|
||||
#endif
|
||||
|
||||
#include "base/basictypes.h"
|
||||
#include "base/stringutil.h"
|
||||
|
||||
Reference in new issue
Block a user