util: open_memstream also support on MacOS
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Acked-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16995>
This commit is contained in:
@@ -51,8 +51,6 @@ u_memstream_open(struct u_memstream *mem, char **bufp, size_t *sizep)
|
||||
}
|
||||
|
||||
return success;
|
||||
#elif defined(__APPLE__)
|
||||
return false;
|
||||
#else
|
||||
FILE *const f = open_memstream(bufp, sizep);
|
||||
mem->f = f;
|
||||
|
||||
Reference in New Issue
Block a user