summaryrefslogtreecommitdiffstats
path: root/osdep/compiler.h
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas@t-8ch.de>2023-11-05 08:58:15 +0100
committersfan5 <sfan5@live.de>2023-11-08 20:26:23 +0100
commit4a134f441d61f24bc1d041740a61ad2be652d17d (patch)
tree80a1e53e0a215ff395a797f461f85ace8d45feb3 /osdep/compiler.h
parenta5c32ea52e6f943a4221f6f18239510502d9b3e4 (diff)
downloadmpv-4a134f441d61f24bc1d041740a61ad2be652d17d.tar.bz2
mpv-4a134f441d61f24bc1d041740a61ad2be652d17d.tar.xz
audio: introduce ao_read_data_nonblocking()
This behaves similar to ao_read_data() but does not block and may return partial data.
Diffstat (limited to 'osdep/compiler.h')
-rw-r--r--osdep/compiler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/osdep/compiler.h b/osdep/compiler.h
index 2908f6e0f2..f5658979e3 100644
--- a/osdep/compiler.h
+++ b/osdep/compiler.h
@@ -7,10 +7,12 @@
#define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format(printf, a1, a2)))
#define MP_NORETURN __attribute__((noreturn))
#define MP_FALLTHROUGH __attribute__((fallthrough))
+#define MP_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
#else
#define PRINTF_ATTRIBUTE(a1, a2)
#define MP_NORETURN
#define MP_FALLTHROUGH do {} while (0)
+#define MP_WARN_UNUSED_RESULT
#endif
// Broken crap with __USE_MINGW_ANSI_STDIO