Simplify to include lower-case windows.h always, fix compilation on mingw32
This commit is contained in:
parent
53dbba7695
commit
f43aca0f63
2 changed files with 1 additions and 6 deletions
5
ggml.c
5
ggml.c
|
@ -28,12 +28,7 @@
|
||||||
|
|
||||||
#if defined _MSC_VER || defined(__MINGW32__)
|
#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>
|
#include <windows.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef volatile LONG atomic_int;
|
typedef volatile LONG atomic_int;
|
||||||
typedef atomic_int atomic_bool;
|
typedef atomic_int atomic_bool;
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
#if defined(_WIN32) && !defined(_POSIX_MAPPED_FILES)
|
#if defined(_WIN32) && !defined(_POSIX_MAPPED_FILES)
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <Windows.h>
|
#include <windows.h>
|
||||||
#else
|
#else
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue