[vlc-devel] [PATCH 06/12] Implement ATTR_PACKED for MSVC.
Felix Abecassis
felix.abecassis at gmail.com
Fri Nov 29 17:41:31 CET 2013
---
include/vlc_codecs.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/vlc_codecs.h b/include/vlc_codecs.h
index 595a0e0..af3fba5 100644
--- a/include/vlc_codecs.h
+++ b/include/vlc_codecs.h
@@ -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)
--
1.7.9
More information about the vlc-devel
mailing list