r588 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Feb 26 15:01:45 EST 2006


Author: ludwig
Date: 2006-02-26 15:01:45 -0500 (Sun, 26 Feb 2006)
New Revision: 588

Modified:
   trunk/code/qcommon/q_shared.h
   trunk/code/qcommon/vm.c
Log:
try to fix msvc build


Modified: trunk/code/qcommon/q_shared.h
===================================================================
--- trunk/code/qcommon/q_shared.h	2006-02-26 18:47:39 UTC (rev 587)
+++ trunk/code/qcommon/q_shared.h	2006-02-26 20:01:45 UTC (rev 588)
@@ -105,7 +105,9 @@
 #ifdef Q3_VM
 typedef int intptr_t;
 #else
-#include <inttypes.h>
+# ifndef _MSC_VER
+#  include <stdint.h>
+# endif
 #endif
 
 typedef unsigned char 		byte;

Modified: trunk/code/qcommon/vm.c
===================================================================
--- trunk/code/qcommon/vm.c	2006-02-26 18:47:39 UTC (rev 587)
+++ trunk/code/qcommon/vm.c	2006-02-26 20:01:45 UTC (rev 588)
@@ -886,6 +886,6 @@
 		f = fopen("syscalls.log", "w" );
 	}
 	callnum++;
-	fprintf(f, "%i: %"PRIiPTR" (%i) = %i %i %i %i\n", callnum, (intptr_t)(args - (int *)currentVM->dataBase),
+	fprintf(f, "%i: %p (%i) = %i %i %i %i\n", callnum, (void*)(args - (int *)currentVM->dataBase),
 		args[0], args[1], args[2], args[3], args[4] );
 }




More information about the quake3-commits mailing list