ports/graphics/grx/files/patch-src__utils__shiftscl.c
Martin Wilke 865d170328 - Fix build on i386
- Stage support

PR:		188139
Submitted by:	Ports Fury
2014-05-18 04:59:13 +00:00

20 lines
770 B
C

--- src/utils/shiftscl.c.orig
+++ src/utils/shiftscl.c
@@ -34,7 +34,7 @@
for (plane = 0; plane < planes; ++plane) {
GR_int8u far *s = *(src++) + ws;
GR_int8u far *d = *(dst++) + ws;
-# if defined(__GNUC__) && defined(__i386__)
+# if defined(__GNUC__) && defined(__i386__) && !defined(__clang__)
int _dummy_, w = ws;
/* sad but true: the x86 bytesex forces this inefficient code :( */
asm volatile ("\n"
@@ -91,7 +91,7 @@
for (plane = 0; plane < planes; ++plane) {
GR_int8u far *s = *(src++);
GR_int8u far *d = *(dst++);
-# if defined(__GNUC__) && defined(__i386__)
+# if defined(__GNUC__) && defined(__i386__) && !defined(__clang__)
int _dummy_, w = ws;
asm volatile ("\n"
" movb (%0),%%ch \n"