mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
VS2010 buildfixes.
The main issue was mostly that we have to build C files as C++ in some cases, and extern "C" wasn't being used everywhere, so linker errors popped up. The rest is the usual tedious VS2010 stuff like casting void* to other stuff, so this commit as a whole is pretty boring!
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include <SDL_stdinc.h>
|
||||
#include "Vlogging.h"
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -258,6 +259,10 @@ static void check_color_support(void)
|
||||
return;
|
||||
}
|
||||
|
||||
/* Older VS releases don't have this defined yet */
|
||||
#ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING
|
||||
#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004
|
||||
#endif
|
||||
const BOOL success = SetConsoleMode(
|
||||
hStdout, ENABLE_PROCESSED_OUTPUT | ENABLE_VIRTUAL_TERMINAL_PROCESSING
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user