Trying again to fix error on windows compilation C2589: '(': illegal token

This commit is contained in:
CoderRC 2023-04-03 17:48:52 -04:00 committed by GitHub
parent b90a3bf15e
commit 32d0fe7e92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

22
ggml.h
View file

@ -779,7 +779,27 @@ int ggml_cpu_has_vsx(void);
#if defined(_WIN32) && !defined(_POSIX_THREADS)
#define WIN32_LEAN_AND_MEAN
#include <handleapi.h>
#if !defined(min) && !defined(max)
#include <Windows.h>
#ifdef min
#undef min
#endif
#ifdef max
#undef max
#endif
#elif defined(min) && defined(max)
#include <Windows.h>
#elif !defined(min)
#include <Windows.h>
#ifdef max
#undef max
#endif
#elif !defined(max)
#include <Windows.h>
#ifdef min
#undef min
#endif
#endif
#else
#include <unistd.h>
#endif