From da349d8dc9bc80d2a14b39ae63b6735f5b45d2e0 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Sat, 14 Feb 2015 01:42:59 +0100 Subject: fix compilation with MSVC TODO: uhm, _snprintf()... WRONG ? --- src/qcommon/q_shared.h | 1 + src/qcommon/vm.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/qcommon') diff --git a/src/qcommon/q_shared.h b/src/qcommon/q_shared.h index 259300ed..23cab99c 100644 --- a/src/qcommon/q_shared.h +++ b/src/qcommon/q_shared.h @@ -148,6 +148,7 @@ typedef int intptr_t; // vsnprintf is ISO/IEC 9899:1999 // abstracting this to make it portable int Q_vsnprintf(char *str, size_t size, const char *format, va_list ap); + #define Q_snprintf _snprintf #else #include diff --git a/src/qcommon/vm.c b/src/qcommon/vm.c index d6d589d2..18be5331 100644 --- a/src/qcommon/vm.c +++ b/src/qcommon/vm.c @@ -575,7 +575,7 @@ it will attempt to load as a system dll vm_t *VM_Create( const char *module, intptr_t (*systemCalls)(intptr_t *), vmInterpret_t interpret ) { vm_t *vm; - vmHeader_t *header; + vmHeader_t *header = NULL; int i, remaining, retval; char filename[MAX_OSPATH]; void *startSearch = NULL; -- cgit