From ae80da0c57078d80aae5a3b46be7f785017fbe8a Mon Sep 17 00:00:00 2001 From: evilynux Date: Wed, 10 Jan 2007 17:36:08 +0000 Subject: [PATCH] Fixed compilation error by moving min(a,b) macro to GPU.h . --- desmume/src/GPU.c | 4 ---- desmume/src/GPU.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/desmume/src/GPU.c b/desmume/src/GPU.c index c986e2db1..9eccbe606 100644 --- a/desmume/src/GPU.c +++ b/desmume/src/GPU.c @@ -553,10 +553,6 @@ void GPU_setMASTER_BRIGHT (GPU *gpu, u16 v) gpu->MASTER_BRIGHT = v; } -#ifndef min -#define min(a,b) (((a)<(b))?(a):(b)) -#endif - INLINE BOOL renderline_checkWindowInside(GPU *gpu, u8 bgnum, u16 x, u16 y, BOOL *draw, BOOL *effect) { /* priority to check the window regions: win0,win1,winobj */ diff --git a/desmume/src/GPU.h b/desmume/src/GPU.h index 1363b08bb..3c720e3b6 100644 --- a/desmume/src/GPU.h +++ b/desmume/src/GPU.h @@ -127,6 +127,10 @@ typedef union i.bitfield.blue = w.bitfield.blue; \ i.bitfield.alpha = w.bitfield.alpha; +#ifndef min +#define min(a,b) (((a)<(b))?(a):(b)) +#endif + struct _BGxCNT { /*0*/ unsigned Priority:2; // 0..3=high..low