From 4adddce15377641efcd2ec2e0cf36c23d0eaf510 Mon Sep 17 00:00:00 2001 From: Robin Mills Date: Sat, 28 Dec 2013 06:11:10 +0000 Subject: [PATCH] Issue: 940. Compiler warnings. Really should fix the mess concerning str_error_r in autotools and CMake in the config directory. --- src/futils.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/futils.cpp b/src/futils.cpp index e12251f3..f511b3c9 100644 --- a/src/futils.cpp +++ b/src/futils.cpp @@ -95,9 +95,11 @@ namespace Exiv2 { #if ( _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600 ) && ! _GNU_SOURCE // XSI-compliant version of strerror_r() is provided #else +#ifdef __clang6__ #define STRERROR_R_CHAR_P #endif #endif +#endif #endif std::string strError()