build: add win-platform.h
Build / build (push) Failing after 7m17s

This commit is contained in:
2026-06-19 12:24:40 -03:00
parent 42d94b7f44
commit 6aeb90cc82
5 changed files with 23 additions and 12 deletions
+1 -1
View File
@@ -1,9 +1,9 @@
#include "cache-cleaner.h"
#include "win-platform.h"
#include <filesystem>
#include <unordered_set>
#include <windows.h>
#include <shlobj.h>
#include <tlhelp32.h>
+6 -8
View File
@@ -9,20 +9,18 @@
#include "proxy-configurator.h"
#include "cache-cleaner.h"
#if defined(__MINGW32__) || defined(__MINGW64__)
#include <windows.h>
#else
#include <consoleapi.h>
// from: WinBase.h
#define CREATE_NO_WINDOW 0x08000000
#endif
#include "win-platform.h"
#include <processenv.h>
#include <cassert>
#include <processthreadsapi.h>
#include <handleapi.h>
#ifndef CREATE_NO_WINDOW
// from: WinBase.h
#define CREATE_NO_WINDOW 0x08000000
#endif
bool running = true;
TinyMITMProxy* proxy = nullptr;
ProxyConfigurator* conf = nullptr;
+2 -2
View File
@@ -2,8 +2,8 @@
#include "log-sink.h"
typedef void* HWND;
#include <minwindef.h>
#include "win-platform.h"
#include <minwinbase.h>
#include <wininet.h>
#include <errhandlingapi.h>
+2 -1
View File
@@ -1,6 +1,7 @@
#include "utils.h"
#include <minwindef.h>
#include "win-platform.h"
#include <libloaderapi.h>
std::string utils::getExePath()
+12
View File
@@ -0,0 +1,12 @@
#pragma once
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef NOMINMAX
#define NOMINMAX
#endif
#if defined(_WIN32)
#include <windows.h>
#endif