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; ...@@ -50,6 +50,9 @@ typedef GUID guid_t;
#elif defined(__SUNPRO_C) #elif defined(__SUNPRO_C)
# pragma pack(1) # pragma pack(1)
# define ATTR_PACKED # define ATTR_PACKED
#elif defined(__APPLE__)
# pragma pack(push, 1)
# define ATTR_PACKED
#else #else
# error FIXME # error FIXME
#endif #endif
...@@ -205,7 +208,7 @@ ATTR_PACKED ...@@ -205,7 +208,7 @@ ATTR_PACKED
} VIDEOINFO; } VIDEOINFO;
#endif #endif
#if defined(__SUNPRO_C) #if defined(__SUNPRO_C) || (defined(__APPLE__) && !HAVE_ATTRIBUTE_PACKED)
# pragma pack() # pragma pack()
#endif #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