mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 02:18:04 +01:00
cmake: android support
Foundation/src/Error.cpp: ndk-r9 define _GNU_SOURCE in features.h but only the XSI-compliant strerror_r in string.h
This commit is contained in:
@@ -75,10 +75,10 @@ namespace Poco {
|
||||
without -D_GNU_SOURCE is needed, otherwise the GNU version is
|
||||
preferred.
|
||||
*/
|
||||
#ifdef _GNU_SOURCE
|
||||
#if defined _GNU_SOURCE && !POCO_ANDROID
|
||||
char errmsg[256] = "";
|
||||
return std::string(strerror_r(errorCode, errmsg, 256));
|
||||
#elif (_XOPEN_SOURCE >= 600)
|
||||
#elif (_XOPEN_SOURCE >= 600) || POCO_ANDROID
|
||||
char errmsg[256] = "";
|
||||
strerror_r(errorCode, errmsg, 256);
|
||||
return errmsg;
|
||||
|
||||
Reference in New Issue
Block a user