Commit 8cc8898b authored by Felix Abecassis's avatar Felix Abecassis Committed by Jean-Baptiste Kempf

Implement ATTR_PACKED for MSVC.

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 02f2f5f2
......@@ -47,7 +47,7 @@ typedef GUID guid_t;
#ifdef HAVE_ATTRIBUTE_PACKED
# define ATTR_PACKED __attribute__((__packed__))
#elif defined(__SUNPRO_C)
#elif defined(__SUNPRO_C) || defined(_MSC_VER)
# pragma pack(1)
# define ATTR_PACKED
#elif defined(__APPLE__)
......@@ -210,7 +210,7 @@ ATTR_PACKED
} VIDEOINFO;
#endif
#if defined(__SUNPRO_C)
#if defined(__SUNPRO_C) || defined(_MSC_VER)
# pragma pack()
#elif defined(__APPLE__) && !HAVE_ATTRIBUTE_PACKED
# pragma pack(pop)
......
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