[core, desktop] "fixes" from building on mxe/x86_64-w64-mingw32 (#396)

* well, i couldn't build the executable, but in anyway those build
  errors can come back later to bite our backs
* include missing include
* safeguard _MSC_VER only headers

* saw some of those changes on another PR but I cant find it at moment

Signed-off-by: Caio Oliveira <caiooliveirafarias0@gmail.com>

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/396
Reviewed-by: crueter <crueter@eden-emu.dev>
Co-authored-by: Caio Oliveira <caiooliveirafarias0@gmail.com>
Co-committed-by: Caio Oliveira <caiooliveirafarias0@gmail.com>
This commit is contained in:
Caio Oliveira 2025-09-10 02:22:07 +02:00 committed by crueter
parent 9d2681ecc9
commit 2502352180
No known key found for this signature in database
GPG key ID: 425ACD2D4830EBC6
6 changed files with 16 additions and 1 deletions

View file

@ -10,8 +10,10 @@
#define NOMINMAX
#include <windows.h>
#include <wlanapi.h>
#ifdef _MSC_VER
#pragma comment(lib, "wlanapi.lib")
#endif
#endif
#include <common/settings.h>
#include <mutex>

View file

@ -15,8 +15,10 @@ using namespace std::chrono_literals;
#define NOMINMAX
#include <windows.h>
#include <wlanapi.h>
#ifdef _MSC_VER
#pragma comment(lib, "wlanapi.lib")
#endif
#endif
namespace Network {
#ifdef ENABLE_WIFI_SCAN