Added some os detection

Need to detect linux x86 or x64
merge-requests/28/head
Nemirtingas 2019-09-01 20:46:55 +02:00
parent 92ed36f499
commit 495bc957cd
2 changed files with 19 additions and 6 deletions

View File

@ -18,6 +18,20 @@
#ifndef BASE_INCLUDE
#define BASE_INCLUDE
#if defined(WIN64) || defined(_WIN64) || defined(__MINGW64__)
#define __WINDOWS_64__
#elif defined(WIN32) || defined(_WIN32) || defined(__MINGW32__)
#define __WINDOWS_32__
#endif
#if defined(__WINDOWS_32__) || defined(__WINDOWS_64__)
#define __WINDOWS__
#endif
#if defined(__linux__) || defined(linux)
#define __LINUX__
#endif
#if defined(WIN32) || defined(_WIN32)
#define STEAM_WIN32
#pragma warning( disable : 4716)

View File

@ -2,11 +2,9 @@
#define __INCLUDED_WINDOWS_HOOK_H__
#include "Base_Hook.h"
#ifndef NO_OVERLAY
#define WIN32_LEAN_AND_MEAN
#define VC_EXTRALEAN
#include <Windows.h>
#ifdef __WINDOWS__
#ifndef NO_OVERLAY
class Windows_Hook : public Base_Hook
{
@ -48,4 +46,5 @@ public:
};
#endif//NO_OVERLAY
#endif//__WINDOWS__
#endif//__INCLUDED_WINDOWS_HOOK_H__