diff --git a/code/qcommon/q_shared.h b/code/qcommon/q_shared.h index 2d4b3e1b..c2edca10 100644 --- a/code/qcommon/q_shared.h +++ b/code/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 +# ifndef _MSC_VER +# include +# endif #endif typedef unsigned char byte; diff --git a/code/qcommon/vm.c b/code/qcommon/vm.c index ed38ad02..9e18f1ca 100644 --- a/code/qcommon/vm.c +++ b/code/qcommon/vm.c @@ -886,6 +886,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] ); }