llama.cpp
llama.cpp copied to clipboard
Windows fixes
This would be the initial PR to be able to compile stuff in Windows.
In particular, MSVC is very picky about the features you can use and you cannot.
With C++11
- You cannot use designated initializers (when initializing a struct, you cannot specify the fields names)
- You cannot use VLAs, so I changed it to a vector.
A PR for the CMake build system (as agreed in #22) will be separated.
These changes were tested with MSVC 19.34.31937.0 (VS Studio 2022) and in macOS 12.6 with Apple clang version 13.1.6