diff options
author | Tim Angus <tim@ngus.net> | 2006-02-26 21:27:02 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2006-02-26 21:27:02 +0000 |
commit | b8d0da94c3014753ce948f5d861ebfebb467eafe (patch) | |
tree | 386eeafee16f054abd7ce57dd195af030eaf1159 /src/qcommon | |
parent | 310effbb68b3e335574b682bb4359d8e29f3430b (diff) |
* Merged ioq3-r589
Diffstat (limited to 'src/qcommon')
-rw-r--r-- | src/qcommon/q_shared.h | 4 | ||||
-rw-r--r-- | src/qcommon/vm.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/qcommon/q_shared.h b/src/qcommon/q_shared.h index 518eab41..0059cdfa 100644 --- a/src/qcommon/q_shared.h +++ b/src/qcommon/q_shared.h @@ -105,7 +105,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #ifdef Q3_VM typedef int intptr_t; #else -#include <inttypes.h> +# ifndef _MSC_VER +# include <stdint.h> +# endif #endif typedef unsigned char byte; diff --git a/src/qcommon/vm.c b/src/qcommon/vm.c index 515afc9b..27f30f09 100644 --- a/src/qcommon/vm.c +++ b/src/qcommon/vm.c @@ -887,6 +887,6 @@ void VM_LogSyscalls( int *args ) { 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] ); } |