mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-12 21:31:39 +00:00
Merge pull request #10409 from JosJuice/android-no-cplusplus-checks
Android: Get rid of __cplusplus macro checks
This commit is contained in:
commit
b32af33f24
2 changed files with 0 additions and 15 deletions
|
@ -36,9 +36,7 @@ jobject GameFileToJava(JNIEnv* env, std::shared_ptr<const UICommon::GameFile> ga
|
||||||
reinterpret_cast<jlong>(new std::shared_ptr<const UICommon::GameFile>(std::move(game_file))));
|
reinterpret_cast<jlong>(new std::shared_ptr<const UICommon::GameFile>(std::move(game_file))));
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
|
||||||
|
|
||||||
JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_model_GameFile_finalize(JNIEnv* env,
|
JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_model_GameFile_finalize(JNIEnv* env,
|
||||||
jobject obj)
|
jobject obj)
|
||||||
|
@ -201,7 +199,4 @@ JNIEXPORT jobject JNICALL Java_org_dolphinemu_dolphinemu_model_GameFile_parse(JN
|
||||||
|
|
||||||
return GameFileToJava(env, game_file);
|
return GameFileToJava(env, game_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
|
@ -11,20 +11,13 @@
|
||||||
#include "jni/AndroidCommon/IDCache.h"
|
#include "jni/AndroidCommon/IDCache.h"
|
||||||
#include "jni/GameList/GameFile.h"
|
#include "jni/GameList/GameFile.h"
|
||||||
|
|
||||||
namespace UICommon
|
|
||||||
{
|
|
||||||
class GameFile;
|
|
||||||
}
|
|
||||||
|
|
||||||
static UICommon::GameFileCache* GetPointer(JNIEnv* env, jobject obj)
|
static UICommon::GameFileCache* GetPointer(JNIEnv* env, jobject obj)
|
||||||
{
|
{
|
||||||
return reinterpret_cast<UICommon::GameFileCache*>(
|
return reinterpret_cast<UICommon::GameFileCache*>(
|
||||||
env->GetLongField(obj, IDCache::GetGameFileCachePointer()));
|
env->GetLongField(obj, IDCache::GetGameFileCachePointer()));
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
|
||||||
|
|
||||||
JNIEXPORT jlong JNICALL
|
JNIEXPORT jlong JNICALL
|
||||||
Java_org_dolphinemu_dolphinemu_model_GameFileCache_newGameFileCache(JNIEnv* env, jclass)
|
Java_org_dolphinemu_dolphinemu_model_GameFileCache_newGameFileCache(JNIEnv* env, jclass)
|
||||||
|
@ -96,7 +89,4 @@ JNIEXPORT jboolean JNICALL Java_org_dolphinemu_dolphinemu_model_GameFileCache_sa
|
||||||
{
|
{
|
||||||
return GetPointer(env, obj)->Save();
|
return GetPointer(env, obj)->Save();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue