Re: [Mingw-w64-public] strsafe.h cannot be included before windows.h

2024-02-18 Thread LIU Hao
在 2024-02-18 15:40, Julian Waters 写道: In file included from C:/msys64/ucrt64/include/windows.h:70, from try.c:4: C:/msys64/ucrt64/include/winbase.h:1499:37: error: expected identifier or '(' before 'LPSTR' 1499 | WINBASEAPI LPSTR WINAPI lstrcpyA (LPSTR lpString1, LPCSTR

[Mingw-w64-public] strsafe.h cannot be included before windows.h

2024-02-17 Thread Julian Waters
Tried with gcc 13: gcc -O3 -flto=auto -std=c11 -pedantic -Wpedantic -Wall -Wextra try.c #include #include #include int main() { return 0; } In file included from C:/msys64/ucrt64/include/windows.h:70, from try.c:4: C:/msys64/ucrt64/include/winbase.h:1499:37: error: