overlay: remove unnecessary _WIN32_WINNT definition, add missing includes

This commit also changes <math.h> to <cmath>, because the former is deprecated and causes build errors.
This commit is contained in:
Davide Beatrici 2020-03-19 04:29:42 +01:00
parent a8685afe56
commit ca21e276d1
3 changed files with 6 additions and 8 deletions

View File

@ -6,19 +6,17 @@
#ifndef MUMBLE_HARDHOOK_MINHOOK_H_
#define MUMBLE_HARDHOOK_MINHOOK_H_
#define _UNICODE
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0501
#endif
#include <stdio.h>
#include <stdarg.h>
#include <ctype.h>
#include <windows.h>
#include <math.h>
#include <cmath>
#include <map>
#include <vector>
#include <string>
#include <windows.h>
#include <unknwn.h>
typedef void *(*voidFunc)();
struct HardHook {

View File

@ -14,7 +14,7 @@
#include <stdarg.h>
#include <ctype.h>
#include <windows.h>
#include <math.h>
#include <cmath>
#include <map>
#include <vector>
#include <string>

View File

@ -15,7 +15,7 @@
#include <stdarg.h>
#include <ctype.h>
#include <windows.h>
#include <math.h>
#include <cmath>
#include <map>
#include <vector>
#include <string>