]> 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>
Sat, 11 May 2024 21:21:08 +0000 (23:21 +0200)
* lib/error.in.h: Don't include mingw's <error.h>.

ChangeLog
lib/error.in.h

index b4319fc47b7e24d20de06b75edfdb51d19ecd964..b96d91fb21e16af84d86d957f5e72090a485a208 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-11  Paul Eggert  <eggert@cs.ucla.edu>
 
        stdbit: clean up namespace and simplify
index 51f8cafd10539df4277cf0fd12fc261ba79668ad..1ba066a863559c8f05f92fec0424c589241d10bd 100644 (file)
@@ -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