From fec936b848c748fa3eeb62533c8f0fea8e1ce161 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 12 Mar 2024 16:51:57 +0100 Subject: [PATCH] Include errno.h before using errno in the string unit test This fixes compilation after the changes of abe5da9875 (Restore value of errno after wxString::ToInt()/Long()/etc., 2023-01-03) under some platforms, where this header doesn't get included from elsewhere, and it's better to explicitly include the headers we need anyhow. See #23113. --- tests/strings/strings.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/strings/strings.cpp b/tests/strings/strings.cpp index 2731161702..37f13464cf 100644 --- a/tests/strings/strings.cpp +++ b/tests/strings/strings.cpp @@ -19,6 +19,8 @@ #include "wx/private/localeset.h" +#include + // ---------------------------------------------------------------------------- // test class // ----------------------------------------------------------------------------