Skip to content

Commit

Permalink
try to fix msvc build
Browse files Browse the repository at this point in the history
  • Loading branch information
lnussel committed Feb 26, 2006
1 parent 40a5ee0 commit a99e721
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion code/qcommon/q_shared.h
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion code/qcommon/vm.c
Expand Up @@ -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] );
}

0 comments on commit a99e721

Please sign in to comment.