test,win: fix -Wattributes warnings (#4868)

Fixes: https://github.com/libuv/libuv/issues/4865
This commit is contained in:
Ben Noordhuis 2025-08-24 20:22:23 +02:00 committed by GitHub
parent 9a8d9c66f3
commit a9c8da7726
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,6 +19,14 @@
* IN THE SOFTWARE. * IN THE SOFTWARE.
*/ */
/* This blank UV_EXTERN squelches "uv_wtf8_to_utf16 redeclared without
* dllimport attribute: previous dllimport ignored" warnings. We neither want
* or need dllimport or dllexport, we just include the source file verbatim.
* It's kind of sloppy because we end up with duplicate symbols, one in
* libuv.dll and one in this translation unit, but it works out fine in
* the end.
*/
#define UV_EXTERN
#include "task.h" #include "task.h"
#define uv__malloc malloc #define uv__malloc malloc
#include "../src/idna.c" #include "../src/idna.c"