summaryrefslogtreecommitdiff
path: root/src/tile16.h
diff options
context:
space:
mode:
authoraliaspider2015-11-09 20:29:32 +0100
committeraliaspider2015-11-09 20:29:32 +0100
commit8d4780b83a112579e729a6f163ccd0ff30fc829f (patch)
tree36d9d8ec6b583beab905f7f59d145ec692ca29ef /src/tile16.h
parent7a7857f47b33f1b63fb585d2dc6c60d87c3e928f (diff)
downloadsnes9x2002-8d4780b83a112579e729a6f163ccd0ff30fc829f.tar.gz
snes9x2002-8d4780b83a112579e729a6f163ccd0ff30fc829f.tar.bz2
snes9x2002-8d4780b83a112579e729a6f163ccd0ff30fc829f.zip
solve 'for' loop initial declarations build errors.
remove --std=c99
Diffstat (limited to 'src/tile16.h')
-rw-r--r--src/tile16.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/tile16.h b/src/tile16.h
index f856b8e..e0560f0 100644
--- a/src/tile16.h
+++ b/src/tile16.h
@@ -161,7 +161,8 @@ extern uint32 TileBlank;
pixel = PIXEL; \
for (l = LineCount; l != 0; l--, sp += GFX_PPL, Depth += GFX_PPL) \
{ \
- for (int z = Pixels - 1; z >= 0; z--) \
+ int z ;\
+ for (z = Pixels - 1; z >= 0; z--) \
if (GFX.Z1 > Depth [z]) \
{ \
sp [z] = FUNCTION(sp + z, pixel); \
@@ -179,7 +180,8 @@ extern uint32 TileBlank;
pixel = PIXEL; \
for (l = LineCount; l != 0; l--, sp += GFX_PPL, Depth += GFX_PPL) \
{ \
- for (int z = Pixels - 1; z >= 0; z--) \
+ int z ;\
+ for (z = Pixels - 1; z >= 0; z--) \
if (GFX.Z1 > Depth [z]) \
{ \
sp [z] = FUNCTION(sp + z, pixel); \
@@ -197,7 +199,8 @@ extern uint32 TileBlank;
pixel = PIXEL; \
for (l = LineCount; l != 0; l--, sp += GFX_PPL, Depth += GFX_PPL) \
{ \
- for (int z = Pixels - 1; z >= 0; z--) \
+ int z ;\
+ for (z = Pixels - 1; z >= 0; z--) \
if (GFX.Z1 > Depth [z]) \
{ \
sp [z] = FUNCTION(sp + z, pixel); \
@@ -213,7 +216,8 @@ extern uint32 TileBlank;
pixel = PIXEL; \
for (l = LineCount; l != 0; l--, sp += GFX_PPL, Depth += GFX_PPL) \
{ \
- for (int z = Pixels - 1; z >= 0; z--) \
+ int z ;\
+ for (z = Pixels - 1; z >= 0; z--) \
if (GFX.Z1 > Depth [z]) \
{ \
sp [z] = FUNCTION(sp + z, pixel); \