summaryrefslogtreecommitdiff
path: root/Source/Android/jni/AndroidCommon/AndroidCommon.h
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2020-11-04 20:59:39 +0100
committerJosJuice <josjuice@gmail.com>2020-12-20 13:24:54 +0100
commit99ffee9a0acc3200f8c8af7b3fc58af2d38fb614 (patch)
treea15ca74f13513c29041ab7e0ba7f7c62e9d0f643 /Source/Android/jni/AndroidCommon/AndroidCommon.h
parent64afe97491c1b713c18a79e4cd18a0cca732ade1 (diff)
Android: Add content provider support to File::OpenFStream
Diffstat (limited to 'Source/Android/jni/AndroidCommon/AndroidCommon.h')
-rw-r--r--Source/Android/jni/AndroidCommon/AndroidCommon.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Android/jni/AndroidCommon/AndroidCommon.h b/Source/Android/jni/AndroidCommon/AndroidCommon.h
index 7ff745f047..a196108cfe 100644
--- a/Source/Android/jni/AndroidCommon/AndroidCommon.h
+++ b/Source/Android/jni/AndroidCommon/AndroidCommon.h
@@ -4,6 +4,7 @@
#pragma once
+#include <ios>
#include <string>
#include <jni.h>
@@ -17,6 +18,7 @@ bool IsPathAndroidContent(const std::string& uri);
// Turns a C/C++ style mode (e.g. "rb") into one which can be used with OpenAndroidContent.
std::string OpenModeToAndroid(std::string mode);
+std::string OpenModeToAndroid(std::ios_base::openmode mode);
// Opens a given file and returns a file descriptor.
int OpenAndroidContent(const std::string& uri, const std::string& mode);