From 92fbd33579995715abb03f40343b70bc03a8bcd9 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Sat, 18 Jun 2022 15:47:34 +0300 Subject: [PATCH] Cleanup autorun.h --- src/autorun.cc | 8 +++++++- src/autorun.h | 8 -------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/autorun.cc b/src/autorun.cc index 1384296..2b49822 100644 --- a/src/autorun.cc +++ b/src/autorun.cc @@ -1,8 +1,14 @@ #include "autorun.h" +#ifdef _WIN32 +#define WIN32_LEAN_AND_MEAN +#define NOMINMAX +#include +#endif + #ifdef _WIN32 // 0x530010 -HANDLE gInterplayGenericAutorunMutex; +static HANDLE gInterplayGenericAutorunMutex; #endif // 0x4139C0 diff --git a/src/autorun.h b/src/autorun.h index 438af79..c479849 100644 --- a/src/autorun.h +++ b/src/autorun.h @@ -1,14 +1,6 @@ #ifndef AUTORUN_H #define AUTORUN_H -#ifdef _WIN32 -#define WIN32_LEAN_AND_MEAN -#define NOMINMAX -#include - -extern HANDLE gInterplayGenericAutorunMutex; -#endif - bool autorunMutexCreate(); void autorunMutexClose();