]> git.sesse.net Git - vlc/commitdiff
Use pragma packing for suncc
authorFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 14 Apr 2010 14:53:20 +0000 (16:53 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 14 Apr 2010 16:32:46 +0000 (19:32 +0300)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
include/vlc_codecs.h

index 14d7af4fb60604dd2105961a71428363c59c6a37..d3a5a555da754f2761e6e9d74717147888533486 100644 (file)
  * This file defines codec related structures needed by the demuxers and decoders
  */
 
-#ifdef HAVE_ATTRIBUTE_PACKED
-#   define ATTR_PACKED __attribute__((__packed__))
-#else
-#   error FIXME
-#endif
-
 /* Structures exported to the demuxers and decoders */
 
 #if !(defined _GUID_DEFINED || defined GUID_DEFINED)
@@ -49,6 +43,15 @@ typedef struct _GUID
 } GUID, *REFGUID, *LPGUID;
 #endif /* GUID_DEFINED */
 
+#ifdef HAVE_ATTRIBUTE_PACKED
+#   define ATTR_PACKED __attribute__((__packed__))
+#elif defined(__SUNPRO_C)
+#   pragma pack(1)
+#   define ATTR_PACKED
+#else
+#   error FIXME
+#endif
+
 #ifndef _WAVEFORMATEX_
 #define _WAVEFORMATEX_
 typedef struct
@@ -199,6 +202,10 @@ ATTR_PACKED
 } VIDEOINFO;
 #endif
 
+#if defined(__SUNPRO_C)
+#   pragma pack()
+#endif
+
 /* WAVE format wFormatTag IDs */
 #define WAVE_FORMAT_UNKNOWN             0x0000 /* Microsoft Corporation */
 #define WAVE_FORMAT_PCM                 0x0001 /* Microsoft Corporation */