summaryrefslogtreecommitdiff
path: root/javaunohelper
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-11-08 17:15:07 +0200
committerTor Lillqvist <tml@iki.fi>2012-11-09 09:54:12 +0200
commit031b9d7d864161a595a8f1476abc12afaca9ada4 (patch)
treebdc5d780675ecc8a0aecd29c66e2ef45e6a75402 /javaunohelper
parent1aa912ed1e525b879bc90d48aa9f0a1469c47c11 (diff)
Use JNIEXPORT to really export these for Android
Now with DISABLE_DYNLOADING, SAL_DLLPUBLIC_EXPORT actually means hidden visibilty. Which is OK in general as with a single DSO (or a single executable, for iOS), none of our "normal" entry points need to be visible froom the outside. So for the JNI entry points use JNIEXPORT. On "normal" platforms it should be equivalent to SAL_DLLPUBLIC_EXPORT. Change-Id: Iad634950e635ac03a0e90cae6d00afd9fb4eeb64
Diffstat (limited to 'javaunohelper')
-rw-r--r--javaunohelper/source/bootstrap.cxx2
-rw-r--r--javaunohelper/source/javaunohelper.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/javaunohelper/source/bootstrap.cxx b/javaunohelper/source/bootstrap.cxx
index 5c6ac0a382ff..2e9fff19a956 100644
--- a/javaunohelper/source/bootstrap.cxx
+++ b/javaunohelper/source/bootstrap.cxx
@@ -66,7 +66,7 @@ inline ::rtl::OUString jstring_to_oustring( jstring jstr, JNIEnv * jni_env )
}
//==================================================================================================
-extern "C" SAL_DLLPUBLIC_EXPORT jobject JNICALL Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap(
+extern "C" JNIEXPORT jobject JNICALL Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap(
JNIEnv * jni_env, SAL_UNUSED_PARAMETER jclass, jstring juno_rc, jobjectArray jpairs,
jobject loader )
{
diff --git a/javaunohelper/source/javaunohelper.cxx b/javaunohelper/source/javaunohelper.cxx
index 374b6386dc3e..d13beac42325 100644
--- a/javaunohelper/source/javaunohelper.cxx
+++ b/javaunohelper/source/javaunohelper.cxx
@@ -52,7 +52,7 @@ using ::rtl::OUString;
* Method: component_writeInfo
* Signature: (Ljava/lang/String;Lcom/sun/star/lang/XMultiServiceFactory;Lcom/sun/star/registry/XRegistryKey;)Z
*/
-extern "C" SAL_DLLPUBLIC_EXPORT jboolean JNICALL
+extern "C" JNIEXPORT jboolean JNICALL
Java_com_sun_star_comp_helper_SharedLibraryLoader_component_1writeInfo(
JNIEnv * pJEnv, SAL_UNUSED_PARAMETER jclass, jstring jLibName, jobject jSMgr,
jobject jRegKey, jobject loader )
@@ -139,7 +139,7 @@ Java_com_sun_star_comp_helper_SharedLibraryLoader_component_1writeInfo(
* Method: component_getFactory
* Signature: (Ljava/lang/String;Ljava/lang/String;Lcom/sun/star/lang/XMultiServiceFactory;Lcom/sun/star/registry/XRegistryKey;)Ljava/lang/Object;
*/
-extern "C" SAL_DLLPUBLIC_EXPORT jobject JNICALL
+extern "C" JNIEXPORT jobject JNICALL
Java_com_sun_star_comp_helper_SharedLibraryLoader_component_1getFactory(
JNIEnv * pJEnv, SAL_UNUSED_PARAMETER jclass, jstring jLibName, jstring jImplName,
jobject jSMgr, jobject jRegKey, jobject loader )
@@ -246,7 +246,7 @@ Java_com_sun_star_comp_helper_SharedLibraryLoader_component_1getFactory(
* Method: createRegistryServiceFactory
* Signature: (Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/Object;
*/
-extern "C" SAL_DLLPUBLIC_EXPORT jobject JNICALL
+extern "C" JNIEXPORT jobject JNICALL
Java_com_sun_star_comp_helper_RegistryServiceFactory_createRegistryServiceFactory(
JNIEnv * pJEnv, SAL_UNUSED_PARAMETER jclass, jstring jWriteRegFile,
jstring jReadRegFile, jboolean jbReadOnly, jobject loader )