From: Igor Kulaychuk Date: Fri, 14 Dec 2018 11:57:43 +0000 (+0300) Subject: Fix macro for checking strerror_r() variant X-Git-Tag: submit/tizen/20190405.141848~4^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c5e384c9aaa9ebd058c374696d153d074461c81c;p=sdk%2Ftools%2Fcoreprofiler.git Fix macro for checking strerror_r() variant --- diff --git a/src/profiler.cpp b/src/profiler.cpp index cf041d9..1f51c3f 100644 --- a/src/profiler.cpp +++ b/src/profiler.cpp @@ -208,7 +208,7 @@ HRESULT Profiler::HandleException(const std::exception &e) const noexcept { char buf[1024] = {0}; char *errno_msg; -#if (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE +#if (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! defined(_GNU_SOURCE) int ret = strerror_r(errno, buf, sizeof(buf)); errno_msg = ret == 0 ? buf : ""; #else