mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-25 02:06:04 +02:00
Merge pull request #319 from csabakeszegh/develop
android build with cmake
This commit is contained in:
@@ -55,10 +55,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