summaryrefslogtreecommitdiff
path: root/src/qcommon
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2015-02-14 01:42:59 +0100
committer/dev/humancontroller <devhc@example.com>2017-02-07 17:33:40 +0100
commitda349d8dc9bc80d2a14b39ae63b6735f5b45d2e0 (patch)
tree5d95e1604573281d77e8d71c990cedb71c4e7922 /src/qcommon
parent2740505c7d428d2114a931ba72bd172489884c01 (diff)
fix compilation with MSVC
TODO: uhm, _snprintf()... WRONG ?
Diffstat (limited to 'src/qcommon')
-rw-r--r--src/qcommon/q_shared.h1
-rw-r--r--src/qcommon/vm.c2
2 files changed, 2 insertions, 1 deletions
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 <stdint.h>
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;