summaryrefslogtreecommitdiff
path: root/emulators/xmame/patches/patch-ab
blob: febeb76f9f06feae012ce4da5bdd832ee2dd24a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ab,v 1.7 2001/03/31 18:59:30 kristerw Exp $
--- src/drawgfx.c.orig	Wed Mar 28 07:30:13 2001
+++ src/drawgfx.c	Fri Mar 30 23:26:46 2001
@@ -2,6 +2,9 @@
 
 #include "driver.h"
 
+/* The heavy use of INLINE in this file causes memory explosion in egcs. */ 
+#undef INLINE
+#define INLINE static
 
 #ifdef LSB_FIRST
 #define SHIFT0 0
@@ -34,7 +37,7 @@
   		return	(*((UINT8 *)address  ) << SHIFT0) +
 				(*((UINT8 *)address+1) << SHIFT1) +
 				(*((UINT8 *)address+2) << SHIFT2) +
-				(*((UINT8 *)address+3) << SHIFT3) );
+				(*((UINT8 *)address+3) << SHIFT3);
 	}
 	else
 		return *(UINT32 *)address;