Fix build with STLPort from NDK r8d
This commit is contained in:
@@ -4655,7 +4655,7 @@ class CV_EXPORTS CommandLineParser
|
||||
template<typename _Tp>
|
||||
static _Tp getData(const std::string& str)
|
||||
{
|
||||
_Tp res;
|
||||
_Tp res = _Tp();
|
||||
std::stringstream s1(str);
|
||||
s1 >> res;
|
||||
return res;
|
||||
|
@@ -65,7 +65,8 @@
|
||||
#elif __GNUC__*10 + __GNUC_MINOR__ >= 42
|
||||
|
||||
#if !(defined WIN32 || defined _WIN32) && (defined __i486__ || defined __i586__ || \
|
||||
defined __i686__ || defined __MMX__ || defined __SSE__ || defined __ppc__)
|
||||
defined __i686__ || defined __MMX__ || defined __SSE__ || defined __ppc__) || \
|
||||
(defined __GNUC__ && defined _STLPORT_MAJOR)
|
||||
#define CV_XADD __sync_fetch_and_add
|
||||
#else
|
||||
#include <ext/atomicity.h>
|
||||
|
Reference in New Issue
Block a user