mirror of
https://github.com/opencv/opencv.git
synced 2025-06-11 03:33:28 +08:00
android: std::exception_ptr is not available on some platforms (even with enabled C++11)
This commit is contained in:
parent
6a15910f0f
commit
8dacbe7584
@ -131,7 +131,9 @@
|
|||||||
|
|
||||||
|
|
||||||
#ifndef CV__EXCEPTION_PTR
|
#ifndef CV__EXCEPTION_PTR
|
||||||
# ifdef CV_CXX11
|
# if defined(__ANDROID__) && defined(ATOMIC_INT_LOCK_FREE) && ATOMIC_INT_LOCK_FREE < 2
|
||||||
|
# define CV__EXCEPTION_PTR 0 // Not supported, details: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58938
|
||||||
|
# elif defined(CV_CXX11)
|
||||||
# define CV__EXCEPTION_PTR 1
|
# define CV__EXCEPTION_PTR 1
|
||||||
# elif defined(CV_ICC)
|
# elif defined(CV_ICC)
|
||||||
# define CV__EXCEPTION_PTR 1
|
# define CV__EXCEPTION_PTR 1
|
||||||
@ -145,7 +147,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#ifndef CV__EXCEPTION_PTR
|
#ifndef CV__EXCEPTION_PTR
|
||||||
# define CV__EXCEPTION_PTR 0
|
# define CV__EXCEPTION_PTR 0
|
||||||
#else
|
#elif CV__EXCEPTION_PTR
|
||||||
# include <exception> // std::exception_ptr
|
# include <exception> // std::exception_ptr
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user