aboutsummaryrefslogtreecommitdiffstats
path: root/code/renderer
diff options
context:
space:
mode:
authorsix <six@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-04 05:19:58 +0000
committersix <six@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-04 05:19:58 +0000
commit983705a1982e3280b4b29e4cd2606527583040bc (patch)
tree2e6ca884ced16ca882e5da3587232eb78d95d336 /code/renderer
parent92e518e67dd6e152ac053ccf2a037967de060b5b (diff)
downloadioquake3-aero-983705a1982e3280b4b29e4cd2606527583040bc.tar.gz
ioquake3-aero-983705a1982e3280b4b29e4cd2606527583040bc.zip
Changed inline to __inline.
Visual C does not accept the inline keyword, only __inline. Visual C does not recognize the #warning compiler directive git-svn-id: svn://svn.icculus.org/quake3/trunk@78 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/renderer')
-rw-r--r--code/renderer/tr_main.c2
-rw-r--r--code/renderer/tr_shader.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/code/renderer/tr_main.c b/code/renderer/tr_main.c
index 348c742..536cb5a 100644
--- a/code/renderer/tr_main.c
+++ b/code/renderer/tr_main.c
@@ -1005,7 +1005,7 @@ qsort replacement
=================
*/
-static inline void SWAP_DRAW_SURF(drawSurf_t* a, drawSurf_t* b)
+static __inline void SWAP_DRAW_SURF(drawSurf_t* a, drawSurf_t* b)
{
drawSurf_t t;
memcpy(&t, a, sizeof(t));
diff --git a/code/renderer/tr_shader.c b/code/renderer/tr_shader.c
index b99ea1b..5376fa2 100644
--- a/code/renderer/tr_shader.c
+++ b/code/renderer/tr_shader.c
@@ -43,7 +43,9 @@ static char **shaderTextHashTable[MAX_SHADERTEXT_HASH];
return a hash value for the filename
================
*/
-#warning TODO: check if long is ok here
+#ifdef __GNUCC__
+ #warning TODO: check if long is ok here
+#endif
static long generateHashValue( const char *fname, const int size ) {
int i;
long hash;