Try to fix windows includes.

This commit is contained in:
Relintai 2023-09-10 14:37:48 +02:00
parent 5e4b583b32
commit 3214cac8a6
2 changed files with 3 additions and 3 deletions

View File

@ -30,8 +30,6 @@
#include "sub_process_windows.h" #include "sub_process_windows.h"
#include <process.h>
Error SubProcessWindows::start() { Error SubProcessWindows::start() {
if (_executable_path.empty()) { if (_executable_path.empty()) {
return ERR_FILE_BAD_PATH; return ERR_FILE_BAD_PATH;

View File

@ -33,9 +33,11 @@
#include "core/os/sub_process.h" #include "core/os/sub_process.h"
#include <process.h>
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
#include <windowsx.h>
typedef HANDLE(WINAPI *WTOpenPtr)(HWND p_window, LOGCONTEXTW *p_ctx, BOOL p_enable);
class SubProcessWindows : public SubProcess { class SubProcessWindows : public SubProcess {
public: public: