mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
Define setlinebuf for MSVC
According to `setbuf(3)`, `setlinebuf` is exactly equivalent to `setvbuf(stream, NULL, _IOLBF, 0)`.
This commit is contained in:
parent
5d7624001d
commit
9ae9009edf
1 changed files with 4 additions and 0 deletions
|
|
@ -22,6 +22,10 @@
|
||||||
|
|
||||||
#if defined(__FreeBSD__) || defined(__MidnightBSD__)
|
#if defined(__FreeBSD__) || defined(__MidnightBSD__)
|
||||||
#define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC
|
#define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
|
static inline void setlinebuf(FILE* stream) {
|
||||||
|
setvbuf(stream, NULL, _IOLBF, 0);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#undef SPA_LOG_TOPIC_DEFAULT
|
#undef SPA_LOG_TOPIC_DEFAULT
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue