]> Savannah Git Hosting - gnulib.git/commitdiff
error-h: Avoid namespace pollution on mingw.
authorBruno Haible <bruno@clisp.org>
Sat, 11 May 2024 21:21:08 +0000 (23:21 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 17 May 2024 23:33:54 +0000 (01:33 +0200)
* lib/error.in.h: Don't include mingw's <error.h>.

ChangeLog
lib/error.in.h

index f881847db764167fef5612e0165118f48489b462..e5688c345c9bc8c93aab8592469659be6d1e0332 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-05-11  Bruno Haible  <bruno@clisp.org>
+
+       error-h: Avoid namespace pollution on mingw.
+       * lib/error.in.h: Don't include mingw's <error.h>.
+
 2024-05-09  Bruno Haible  <bruno@clisp.org>
 
        unistr/u8-strstr tests: Avoid test failure with ASAN.
index 61f98c5216847cb03e6485d9bdf5519c32b37c54..1ba066a863559c8f05f92fec0424c589241d10bd 100644 (file)
@@ -1,5 +1,5 @@
 /* Declarations for error-reporting functions.
-   Copyright (C) 1995-1997, 2003, 2006, 2008-2023 Free Software Foundation,
+   Copyright (C) 1995-1997, 2003, 2006, 2008-2024 Free Software Foundation,
    Inc.
    This file is part of the GNU C Library.
 
@@ -23,7 +23,7 @@
    or error_at_line(...) invocations.  */
 
 /* The include_next requires a split double-inclusion guard.  */
-#if @HAVE_ERROR_H@
+#if @HAVE_ERROR_H@ && !defined __MINGW32__
 # @INCLUDE_NEXT@ @NEXT_ERROR_H@
 #endif