projects
/
sdk
/
tools
/
coreprofiler.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1faa992
)
Fix macro for checking strerror_r() variant
author
Igor Kulaychuk
<i.kulaychuk@samsung.com>
Fri, 14 Dec 2018 11:57:43 +0000
(14:57 +0300)
committer
Igor Kulaychuk
<i.kulaychuk@samsung.com>
Fri, 14 Dec 2018 11:57:43 +0000
(14:57 +0300)
src/profiler.cpp
patch
|
blob
|
history
diff --git
a/src/profiler.cpp
b/src/profiler.cpp
index cf041d9253b2b21ac9eeaba22a197c197f05e6a1..1f51c3f98f38c82905d1773775057663d068411e 100644
(file)
--- 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 : "<strerror_r failure>";
#else