Only import unistd.h for Metal builds
This commit is contained in:
parent
c1b44240d7
commit
c38b0bbf82
1 changed files with 3 additions and 0 deletions
3
ggml.c
3
ggml.c
|
@ -20,7 +20,10 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
|
#ifdef GGML_USE_METAL
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
// if C99 - static_assert is noop
|
// if C99 - static_assert is noop
|
||||||
// ref: https://stackoverflow.com/a/53923785/4039976
|
// ref: https://stackoverflow.com/a/53923785/4039976
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue