diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2018-12-12 04:01:01 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2018-12-12 04:01:01 +0000 |
commit | 6f960885418cf31e5255f68f79dba3e0e2f42b97 (patch) | |
tree | 193980a0cf3bc9789c35b25a67fb0a7233ddf54f | |
parent | 31b1dd0e3ed230dc1e6b46454675d4f3b70fa84d (diff) | |
parent | 2b0b0d0050051839cc4c65b56359a6080e9ccab8 (diff) | |
download | dng_sdk-6f960885418cf31e5255f68f79dba3e0e2f42b97.tar.gz |
Snap for 5176559 from 2b0b0d0050051839cc4c65b56359a6080e9ccab8 to qt-release
Change-Id: I58779a5351b3f0f2187b1ebcc671736de4e925ca
-rw-r--r-- | Android.bp | 11 | ||||
-rw-r--r-- | source/dng_pthread.cpp | 6 | ||||
-rw-r--r-- | source/dng_pthread.h | 10 |
3 files changed, 14 insertions, 13 deletions
@@ -121,6 +121,17 @@ cc_library{ "-framework AppKit", ], }, + windows: { + enabled: true, + cflags: [ + "-D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR", + "-Wno-null-arithmetic", + "-Wno-sign-compare", + "-Wno-tautological-pointer-compare", + "-Wno-unknown-pragmas", + ], + static_libs: ["libcompiler_rt-extras"], + }, }, export_include_dirs: ["source"], diff --git a/source/dng_pthread.cpp b/source/dng_pthread.cpp index 0347856..58c9ed0 100644 --- a/source/dng_pthread.cpp +++ b/source/dng_pthread.cpp @@ -75,7 +75,7 @@ struct dng_pthread_mutex_impl void Lock() { ::EnterCriticalSection(&lock); } void Unlock() { ::LeaveCriticalSection(&lock); } private: - dng_pthread_mutex_impl &operator=(const dng_pthread_mutex_impl &) { } + dng_pthread_mutex_impl &operator=(const dng_pthread_mutex_impl &); dng_pthread_mutex_impl(const dng_pthread_mutex_impl &) { } }; @@ -95,7 +95,7 @@ struct dng_pthread_cond_impl // Non copyable private: - dng_pthread_cond_impl &operator=(const dng_pthread_cond_impl &) { } + dng_pthread_cond_impl &operator=(const dng_pthread_cond_impl &); dng_pthread_cond_impl(const dng_pthread_cond_impl &) { } }; @@ -122,7 +122,7 @@ namespace mutex->Unlock(); } private: - ScopedLock &operator=(const ScopedLock &) { } + ScopedLock &operator=(const ScopedLock &); ScopedLock(const ScopedLock &) { } }; diff --git a/source/dng_pthread.h b/source/dng_pthread.h index 4572e31..80c3d24 100644 --- a/source/dng_pthread.h +++ b/source/dng_pthread.h @@ -53,18 +53,8 @@ #endif -// Use the standard "timespec" struct as "dng_timespec" for VS2015 and above -// from <time.h>. Define "dng_timespec" as "timespec" otherwise. -#if _MSC_VER >= 1900 #include <time.h> #define dng_timespec timespec -#else -struct dng_timespec { - long tv_sec; - long tv_nsec; -}; -#define timespec dng_timespec -#endif #ifdef __cplusplus extern "C" |