Commit ab6a11a2 authored by Felix Paul Kühne's avatar Felix Paul Kühne

include/vlc_codecs.h: added support for Apple platforms in case HAVE_ATTRIBUTE_PACKED isn't enabled

parent 2e02fbfc
......@@ -50,6 +50,9 @@ typedef GUID guid_t;
#elif defined(__SUNPRO_C)
# pragma pack(1)
# define ATTR_PACKED
#elif defined(__APPLE__)
# pragma pack(push, 1)
# define ATTR_PACKED
#else
# error FIXME
#endif
......@@ -205,7 +208,7 @@ ATTR_PACKED
} VIDEOINFO;
#endif
#if defined(__SUNPRO_C)
#if defined(__SUNPRO_C) || (defined(__APPLE__) && !HAVE_ATTRIBUTE_PACKED)
# pragma pack()
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment