Simplify to include lower-case windows.h always, fix compilation on mingw32

This commit is contained in:
Marco Matthies 2023-04-03 21:00:19 +02:00
parent 53dbba7695
commit f43aca0f63
2 changed files with 1 additions and 6 deletions

5
ggml.c
View file

@ -28,12 +28,7 @@
#if defined _MSC_VER || defined(__MINGW32__)
#if !defined(__MINGW32__)
#include <Windows.h>
#else
// ref: https://github.com/ggerganov/whisper.cpp/issues/168
#include <windows.h>
#endif
typedef volatile LONG atomic_int;
typedef atomic_int atomic_bool;

View file

@ -14,7 +14,7 @@
#if defined(_WIN32) && !defined(_POSIX_MAPPED_FILES)
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <windows.h>
#else
#include <sys/types.h>
#include <sys/mman.h>