[vlc-commits] vlc_codecs: use #if defined() instead of #if
Alexandre Janniaux
git at videolan.org
Wed Nov 18 09:22:48 CET 2020
vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Fri Nov 13 10:16:29 2020 +0100| [104836dc76abc64108f1fc06720fbffe59260509] | committer: Alexandre Janniaux
vlc_codecs: use #if defined() instead of #if
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.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=104836dc76abc64108f1fc06720fbffe59260509
---
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
More information about the vlc-commits
mailing list