From 14f9beab231036b0ce261b0e274c4cf7fbdd9985 Mon Sep 17 00:00:00 2001
From: TimeServ <timeserv@users.sourceforge.net>
Date: Mon, 1 Aug 2005 03:22:36 +0000
Subject: [PATCH] replace _fastcall

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1181 fc73d0e0-1445-4013-8a0c-d673dee63da5
---
 engine/sw/d_local.h | 10 ++++++++--
 engine/sw/d_trans.c |  4 ++--
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/engine/sw/d_local.h b/engine/sw/d_local.h
index fe5bf096e..491398952 100644
--- a/engine/sw/d_local.h
+++ b/engine/sw/d_local.h
@@ -125,11 +125,17 @@ extern void (*d_drawspans) (espan_t *pspan);
 #define TRANS_UPPER_CAP (TRANS_MAX / (TRANS_LEVELS + 0.0))
 #define TRANS_LOWER_CAP (1.0 / TRANS_LEVELS)
 
+#ifdef _fastcall
+#define FASTCALL _fastcall
+#else
+#define FASTCALL
+#endif
+
 void D_InitTrans(void);
 // void Set_TransLevelI(int level);
 void D_SetTransLevel(float level, blendmode_t blend);
-extern qbyte _fastcall Trans(qbyte p, qbyte p2);
-extern qbyte _fastcall AddBlend(qbyte p, qbyte p2);
+extern qbyte FASTCALL Trans(qbyte p, qbyte p2);
+extern qbyte FASTCALL AddBlend(qbyte p, qbyte p2);
 
 extern qbyte *pal555to8;
 #endif
diff --git a/engine/sw/d_trans.c b/engine/sw/d_trans.c
index c516a73c5..eea4f4758 100644
--- a/engine/sw/d_trans.c
+++ b/engine/sw/d_trans.c
@@ -31,7 +31,7 @@ void D_InitTrans(void)
 #define Trans(p, p2)	(t_curlookupp[p][p2])
 #else
 // TODO: INLINE THESE FUNCTIONS
-qbyte _fastcall Trans(qbyte p, qbyte p2)
+qbyte FASTCALL Trans(qbyte p, qbyte p2)
 {	
 	int x;
 
@@ -41,7 +41,7 @@ qbyte _fastcall Trans(qbyte p, qbyte p2)
 }
 #endif
 
-qbyte _fastcall AddBlend(qbyte p, qbyte p2)
+qbyte FASTCALL AddBlend(qbyte p, qbyte p2)
 {
 	int x, y;