Skip to content

Commit 7467b79

Browse files
zixinchengBillyONeal
authored andcommitted
fix anroid build issue by remove the crossplt name space before android parameters (#959)
1 parent 4c3edd6 commit 7467b79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Release/src/pplx/threadpool.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ struct threadpool_impl final : crossplat::threadpool
8484
#if defined(__ANDROID__)
8585
static void detach_from_java(void*)
8686
{
87-
crossplat::JVM.load()->DetachCurrentThread();
87+
JVM.load()->DetachCurrentThread();
8888
}
8989
#endif // __ANDROID__
9090

9191
static void* thread_start(void *arg) CPPREST_NOEXCEPT
9292
{
9393
#if defined(__ANDROID__)
9494
// Calling get_jvm_env() here forces the thread to be attached.
95-
crossplat::get_jvm_env();
95+
get_jvm_env();
9696
pthread_cleanup_push(detach_from_java, nullptr);
9797
#endif // __ANDROID__
9898
threadpool_impl* _this = reinterpret_cast<threadpool_impl*>(arg);
@@ -197,7 +197,7 @@ void threadpool::initialize_with_threads(size_t num_threads)
197197

198198
#if defined(__ANDROID__)
199199
void cpprest_init(JavaVM* vm) {
200-
crossplat::JVM = vm;
200+
JVM = vm;
201201
}
202202
#endif
203203

0 commit comments

Comments
 (0)