Fix linking on mingw32

This commit is contained in:
anzz1 2023-03-28 18:14:04 +03:00 committed by GitHub
parent 6cf5bde4c3
commit ce3f7adc85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@
#include <stdbool.h> #include <stdbool.h>
#ifdef LLAMA_SHARED #ifdef LLAMA_SHARED
# ifdef _WIN32 # ifdef _WIN32 && !defined __MINGW32__
# ifdef LLAMA_BUILD # ifdef LLAMA_BUILD
# define LLAMA_API __declspec(dllexport) # define LLAMA_API __declspec(dllexport)
# else # else