Add MSVC 2010 project file and a make the project compile

This commit is contained in:
Thomas Bernard
2018-02-06 18:18:16 +01:00
parent ee1ec1a1b0
commit 6f48d7fefe
27 changed files with 678 additions and 19 deletions

View File

@@ -29,6 +29,11 @@
#include <stdlib.h> // atoi()
#include <string.h> // strncpy() strlen()
#ifdef _MSC_VER
#include <stdio.h>
#define snprintf _snprintf
#endif
#include "windows.h"
#include "engine.h"
@@ -1437,6 +1442,7 @@ void Warning_with_format(const char *template, ...) {
va_start(arg_ptr, template);
vsnprintf(message, sizeof(message), template, arg_ptr);
Verbose_message("Warning", message);
va_end(arg_ptr);
}