Have #include <cstdio> when using fprintf(). This is needed if
authoryasuoka <yasuoka@openbsd.org>
Tue, 29 Aug 2023 07:54:01 +0000 (07:54 +0000)
committeryasuoka <yasuoka@openbsd.org>
Tue, 29 Aug 2023 07:54:01 +0000 (07:54 +0000)
wchar.h stops including stdio.h.  from asou

ok tb

regress/lib/libz/utils_unittest.cc

index 57a9eaa..91ba8d7 100644 (file)
@@ -1,4 +1,4 @@
-// $OpenBSD: utils_unittest.cc,v 1.4 2022/11/10 14:51:01 kn Exp $
+// $OpenBSD: utils_unittest.cc,v 1.5 2023/08/29 07:54:01 yasuoka Exp $
 //
 // Copyright 2020 The Chromium Authors. All rights reserved.
 //
@@ -29,6 +29,7 @@
 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 #include <cstddef>
+#include <cstdio>
 #include <vector>
 
 #include <assert.h>