summaryrefslogtreecommitdiff
path: root/gst/rtp/dboolhuff.c
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-02-25 05:17:51 +0530
committerTim-Philipp Müller <tim@centricular.com>2016-03-10 10:01:19 +0000
commitbbde949e8eb89586f2a3fd2e788133340750cb42 (patch)
tree6f97a92f3a195ec28dc6d8fa603eb02db093c727 /gst/rtp/dboolhuff.c
parent63803bfac086035368ecd3314439bb7321769ce2 (diff)
downloadgstreamer-plugins-good-bbde949e8eb89586f2a3fd2e788133340750cb42.tar.gz
win32: Don't use __attribute__ on MSVC
Use MSVC-equivalents for alignment and packing compiler directives when building on MSVC
Diffstat (limited to 'gst/rtp/dboolhuff.c')
-rw-r--r--gst/rtp/dboolhuff.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/rtp/dboolhuff.c b/gst/rtp/dboolhuff.c
index 0e1fd6e2f..6c9450487 100644
--- a/gst/rtp/dboolhuff.c
+++ b/gst/rtp/dboolhuff.c
@@ -10,7 +10,11 @@
#include "dboolhuff.h"
+#ifdef _MSC_VER
+__declspec(align(16)) const unsigned char vp8_norm[256] = {
+#else
const unsigned char vp8_norm[256] __attribute__ ((aligned (16))) = {
+#endif
0, 7, 6, 6, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,