cave-story-solaris/src/WindowsWrapper.h
2020-03-14 14:08:25 +00:00

31 lines
573 B
C

#pragma once
#include <windows.h>
// Visual Studio 6 is missing these, so define them here
#if defined(_MSC_VER) && _MSC_VER <= 1200
#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
// DLGPROC went from returning BOOL to INT_PTR in later versions, and VC6 doesn't like that
#define DLGPROC_RET BOOL
#else
#define DLGPROC_RET INT_PTR
#endif