On Fri, 28 Aug 2026, LIU Hao wrote:
However...
diff --git a/mingw-w64-crt/stdio/_wfindfirst32.c
b/mingw-w64-crt/stdio/_wfindfirst32.c
index a22a97998..e6038ebd5 100644
--- a/mingw-w64-crt/stdio/_wfindfirst32.c
+++ b/mingw-w64-crt/stdio/_wfindfirst32.c
@@ -1,5 +1,6 @@
#include <io.h>
#include <string.h>
+#include "internal.h"
intptr_t __cdecl _wfindfirst32(const wchar_t *_Filename, struct
_wfinddata32_t *_FindData)
{
@@ -20,6 +21,8 @@ intptr_t (__cdecl
*__MINGW_IMP_SYMBOL(_wfindfirst32))(const wchar_t *, struct _w
#ifndef _WIN64
#undef _wfindfirst
+PRAGMA_DIAGNOSTIC_IGNORED_ATTRIBUTE_ALIAS_BEGIN
intptr_t __attribute__ ((alias ("_wfindfirst32"))) __cdecl
_wfindfirst(const char *, struct _wfinddata32_t *);
extern intptr_t __attribute__ ((alias
(__MINGW64_STRINGIFY(__MINGW_IMP_SYMBOL(_wfindfirst32))))) (__cdecl
*__MINGW_IMP_SYMBOL(_wfindfirst))(const char *, struct _wfinddata32_t *);
+PRAGMA_DIAGNOSTIC_IGNORED_ATTRIBUTE_ALIAS_END
unrelated to these patches, I think these `const char*` should be `const
wchar_t*`.
Good catch, I sent a fix (and a revised fix that fixes both cases).
// Martin
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public