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:
Yonggang Luo
2022-08-07 13:21:26 +08:00
committed by Marge Bot
parent ecfda9a0fa
commit c0dd2eabaa
-2
View File
@@ -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;