[vlc-commits] Implement ATTR_PACKED for MSVC.

Felix Abecassis git at videolan.org
Sat Nov 30 21:31:18 CET 2013


vlc | branch: master | Felix Abecassis <felix.abecassis at gmail.com> | Fri Nov 29 17:41:31 2013 +0100| [8cc8898baaec9aa4280fb58391e6a5b6e199045f] | committer: Jean-Baptiste Kempf

Implement ATTR_PACKED for MSVC.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8cc8898baaec9aa4280fb58391e6a5b6e199045f
---

 include/vlc_codecs.h |    4 ++--
 1 file 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)



More information about the vlc-commits mailing list