summaryrefslogtreecommitdiff
path: root/multimedia/libmpeg3/patches/patch-ai
blob: bbed5b05876e56115d2b068e9eae1c9ca9165bd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-ai,v 1.1 2006/08/09 17:55:51 mrg Exp $

--- video/slice.c.orig	2001-05-19 20:05:26.000000000 -0700
+++ video/slice.c	2006-08-09 10:42:13.000000000 -0700
@@ -8,7 +8,13 @@
 
 #define CLIP(x)  ((x) >= 0 ? ((x) < 255 ? (x) : 255) : 0)
 
-static unsigned long long MMX_128 = 0x80008000800080LL;
+#if defined(__GNUC__) && __GNUC__ > 3
+#define LMUSED	__attribute__((__used__))
+#else
+#define LMUSED
+#endif
+
+static unsigned long long MMX_128 LMUSED = 0x80008000800080LL;
 
 int mpeg3_new_slice_buffer(mpeg3_slice_buffer_t *slice_buffer)
 {