try to fix msvc build

This commit is contained in:
Ludwig Nussel 2006-02-26 20:01:45 +00:00
parent 40a5ee007f
commit a99e721711
2 changed files with 4 additions and 2 deletions

View file

@ -105,7 +105,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#ifdef Q3_VM #ifdef Q3_VM
typedef int intptr_t; typedef int intptr_t;
#else #else
#include <inttypes.h> # ifndef _MSC_VER
# include <stdint.h>
# endif
#endif #endif
typedef unsigned char byte; typedef unsigned char byte;

View file

@ -886,6 +886,6 @@ void VM_LogSyscalls( int *args ) {
f = fopen("syscalls.log", "w" ); f = fopen("syscalls.log", "w" );
} }
callnum++; 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] ); args[0], args[1], args[2], args[3], args[4] );
} }