From 00853b7de37ff65b400fd319e897d2e320f59171 Mon Sep 17 00:00:00 2001 From: luboslenco Date: Mon, 2 Mar 2026 08:39:44 +0100 Subject: [PATCH] base: fix compile --- base/sources/backends/windows_mini.h | 13 ++++++++----- base/sources/iron_file.c | 3 +++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/base/sources/backends/windows_mini.h b/base/sources/backends/windows_mini.h index d3524f21..2d07b42f 100644 --- a/base/sources/backends/windows_mini.h +++ b/base/sources/backends/windows_mini.h @@ -39,11 +39,14 @@ typedef CONST void *LPCVOID; #define CREATE_ALWAYS 2 #define OPEN_EXISTING 3 -#define FILE_ATTRIBUTE_NORMAL 0x00000080 -#define INVALID_HANDLE_VALUE ((HANDLE)(LONG_PTR) - 1) -#define FILE_BEGIN 0 -#define FILE_CURRENT 1 -#define MAX_PATH 260 +#define FILE_ATTRIBUTE_HIDDEN 0x00000002 +#define FILE_ATTRIBUTE_DIRECTORY 0x00000010 +#define FILE_ATTRIBUTE_NORMAL 0x00000080 +#define INVALID_FILE_ATTRIBUTES ((DWORD) - 1) +#define INVALID_HANDLE_VALUE ((HANDLE)(LONG_PTR) - 1) +#define FILE_BEGIN 0 +#define FILE_CURRENT 1 +#define MAX_PATH 260 typedef struct _SECURITY_ATTRIBUTES { DWORD nLength; diff --git a/base/sources/iron_file.c b/base/sources/iron_file.c index f5beb276..909a76d5 100644 --- a/base/sources/iron_file.c +++ b/base/sources/iron_file.c @@ -20,6 +20,9 @@ i32 iron_sys_command(char *cmd); extern char temp_string[1024 * 128]; +#ifdef IRON_WINDOWS +extern wchar_t temp_wstring[1024 * 32]; +#endif static char *fileslocation = NULL; #ifdef IRON_WINDOWS