[vlc-devel] [PATCH] vlc_codecs: use #if defined() instead of #if
Alexandre Janniaux
ajanni at videolabs.io
Fri Nov 13 10:19:15 CET 2020
The `pragma push` side is already using #else after an #ifdef
HAVE_ATTRIBUTE_PACKED, and the configure.ac script is only declaring the
compilation flag when it's available.
Fix multiple -Wundef warnings when compiling the code for Apple OS.
---
include/vlc_codecs.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/vlc_codecs.h b/include/vlc_codecs.h
index bb02853b18..9da69a3192 100644
--- a/include/vlc_codecs.h
+++ b/include/vlc_codecs.h
@@ -179,7 +179,7 @@ ATTR_PACKED
#if defined(__SUNPRO_C) || defined(_MSC_VER)
# pragma pack()
-#elif defined(__APPLE__) && !HAVE_ATTRIBUTE_PACKED
+#elif defined(__APPLE__) && !defined(HAVE_ATTRIBUTE_PACKED)
# pragma pack(pop)
#endif
--
2.29.2
More information about the vlc-devel
mailing list