aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/System/Errno.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/System/Errno.cpp b/lib/System/Errno.cpp
index f4e3a88..d046aba 100644
--- a/lib/System/Errno.cpp
+++ b/lib/System/Errno.cpp
@@ -47,10 +47,10 @@ std::string StrError(int errnum) {
# else
strerror_r(errnum,buffer,MaxErrStrLen-1);
# endif
-#elif HAVE_STRERROR_S // Windows.
+#elif defined(HAVE_STRERROR_S) // Windows.
if (errnum)
strerror_s(buffer, errnum);
-#elif HAVE_STRERROR
+#elif defined(HAVE_STRERROR)
// Copy the thread un-safe result of strerror into
// the buffer as fast as possible to minimize impact
// of collision of strerror in multiple threads.