GNU bug report logs -
#71269
[PATCH 1/2] sdiff: Match execvp argument types
Previous Next
Full log
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
* src/system.h: Define stricoll as _stricoll on mingw.
Upstream-Status: Submitted [https://lists.gnu.org/archive/html/diffutils-devel/2024-05/msg00001.html]
Signed-off-by: Khem Raj <raj.khem <at> gmail.com>
---
src/system.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/system.h b/src/system.h
index b37893f..4c7a318 100644
--- a/src/system.h
+++ b/src/system.h
@@ -63,6 +63,16 @@
#include <inttypes.h>
#include <string.h>
+/* stricoll is not provided by any headers on windows/mingw
+ only _stricoll is provided, the function is however aliased
+ to provide stricoll in runtime libraries, the configure check
+ to detect stricoll defines the prototype in generated test
+ itself and thus test passes, however compiling fails with
+ GCC-14 which enables implicit-function-declaration as error */
+#if defined _WIN32 && ! defined __CYGWIN__
+#define stricoll _stricoll
+#endif
+
#if ! HAVE_STRCASECOLL
# if HAVE_STRICOLL || defined stricoll
# define strcasecoll(a, b) stricoll (a, b)
--
2.45.1
This bug report was last modified 1 year and 15 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.