Fix compilation error when cross-compiling ggml-cpu for Windows using MinGW-w64 on Linux. The _WIN32_WINNT macro is only defined by MSVC headers, causing undefined macro warnings with GCC/MinGW. When cross-compiling llama.cpp for Windows from Linux using MinGW-w64, the `_WIN32_WINNT` macro is not defined (it's provided by MSVC SDK headers). This causes compilation warnings or errors. The fix adds `defined(_MSC_VER)` guard to ensure this Windows-specific code path is only evaluated when compiling with MSVC. |
||
|---|---|---|
| .. | ||
| cmake | ||
| include | ||
| src | ||
| .gitignore | ||
| CMakeLists.txt | ||