* tests/test-getopt.h (test_getopt): Don't special-case mingw.
+2024-07-23 Bruno Haible <bruno@clisp.org>
+
+ getopt-posix, getopt-gnu tests: Avoid test failure on mingw.
+ * tests/test-getopt.h (test_getopt): Don't special-case mingw.
+
2024-07-23 Bruno Haible <bruno@clisp.org>
strtod, strtold: Fix underflow behaviour of system function.
bool posixly = !!getenv ("POSIXLY_CORRECT");
/* See comment in getopt.c:
glibc gets a LSB-compliant getopt.
- Standalone applications get a POSIX-compliant getopt. */
-#if defined __GETOPT_PREFIX || !(__GLIBC__ >= 2 || defined __MINGW32__)
+ Standalone applications get a POSIX-compliant getopt.
+ Note: The 'defined __GETOPT_PREFIX' condition is equivalent to
+ $REPLACE_GETOPT = 1 at configure time. */
+#if defined __GETOPT_PREFIX || !(__GLIBC__ >= 2)
/* Using getopt from gnulib or from a non-glibc system. */
posixly = true;
#endif