Move the MSVC6 hacks to WindowsWrapper.h
Now the wrapper has a purpose again, and it keeps things neat.
This commit is contained in:
parent
05fb5cf106
commit
4e0a168533
3 changed files with 23 additions and 24 deletions
17
src/Main.cpp
17
src/Main.cpp
|
@ -22,23 +22,6 @@
|
||||||
#include "Sound.h"
|
#include "Sound.h"
|
||||||
#include "Triangle.h"
|
#include "Triangle.h"
|
||||||
|
|
||||||
// Visual Studio 6 is missing these, so define them here just in case
|
|
||||||
#ifndef VK_OEM_PLUS
|
|
||||||
#define VK_OEM_PLUS 0xBB
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef VK_OEM_COMMA
|
|
||||||
#define VK_OEM_COMMA 0xBC
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef VK_OEM_PERIOD
|
|
||||||
#define VK_OEM_PERIOD 0xBE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef VK_OEM_2
|
|
||||||
#define VK_OEM_2 0xBF
|
|
||||||
#endif
|
|
||||||
|
|
||||||
LRESULT __stdcall WindowProcedure(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);
|
LRESULT __stdcall WindowProcedure(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);
|
||||||
|
|
||||||
char gModulePath[MAX_PATH];
|
char gModulePath[MAX_PATH];
|
||||||
|
|
|
@ -22,13 +22,6 @@
|
||||||
|
|
||||||
#include "Sound.h"
|
#include "Sound.h"
|
||||||
|
|
||||||
// Visual Studio 6 is missing this
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#ifndef DWORD_PTR
|
|
||||||
#define DWORD_PTR DWORD
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define PANDUMMY 0xFF
|
#define PANDUMMY 0xFF
|
||||||
#define VOLDUMMY 0xFF
|
#define VOLDUMMY 0xFF
|
||||||
#define KEYDUMMY 0xFF
|
#define KEYDUMMY 0xFF
|
||||||
|
|
|
@ -1,3 +1,26 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
// Visual Studio 6 is missing these, so define them here
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#ifndef VK_OEM_PLUS
|
||||||
|
#define VK_OEM_PLUS 0xBB
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef VK_OEM_COMMA
|
||||||
|
#define VK_OEM_COMMA 0xBC
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef VK_OEM_PERIOD
|
||||||
|
#define VK_OEM_PERIOD 0xBE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef VK_OEM_2
|
||||||
|
#define VK_OEM_2 0xBF
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef DWORD_PTR
|
||||||
|
#define DWORD_PTR DWORD
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
Loading…
Add table
Reference in a new issue