From e508e30800dc2bbe7fe15b87aee7df4fc084e80c Mon Sep 17 00:00:00 2001 From: hubslave <29800872+hubslave@users.noreply.github.com> Date: Mon, 19 Feb 2018 00:43:35 +0200 Subject: [PATCH] Don't define FMT_LOCALE on OpenBSD OpenBSD doesn't have strtod_l() (at least under the default headers), so the class Locale that the macro gates won't compile. --- include/fmt/posix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/posix.h b/include/fmt/posix.h index a3e0ec22..1be9a87e 100644 --- a/include/fmt/posix.h +++ b/include/fmt/posix.h @@ -353,7 +353,7 @@ class File { long getpagesize(); #if (defined(LC_NUMERIC_MASK) || defined(_MSC_VER)) && \ - !defined(__ANDROID__) && !defined(__CYGWIN__) + !defined(__ANDROID__) && !defined(__CYGWIN__) && !defined(__OpenBSD__) # define FMT_LOCALE #endif