[vlc-devel] [PATCH] vlc_common: include <assert.h>

Filip Roséen filip at atch.se
Wed Mar 15 10:07:57 CET 2017

Given that vlc_assert_unreachable relies on assert from <assert.h>,
this header should be included in order to simplify usage of the

A header that provides a wrapper should not mandate that other headers
are included in order for that wrapper to be usable.
 include/vlc_common.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/vlc_common.h b/include/vlc_common.h
index 6a75753dbf..91901124e7 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -47,6 +47,7 @@
 #include <stdio.h>
 #include <inttypes.h>
 #include <stddef.h>
+#include <assert.h>
 #ifndef __cplusplus
 # include <stdbool.h>

More information about the vlc-devel mailing list