header fix for linux

This commit is contained in:
Timerix 2025-08-10 03:22:10 +03:00
parent d04aac567f
commit a097d5aff9
3 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,3 @@
#include "tlibc/filesystem.h"
#include "internal.h"
bool dir_exists(cstr path){

View File

@ -1,4 +1,3 @@
#include "tlibc/filesystem.h"
#include "internal.h"
bool file_exists(cstr path){
@ -46,6 +45,8 @@ Result(FILE*) file_openOrCreateReadWrite(cstr file_name){
return RESULT_VALUE(p, f);
}
Result(i64) file_getSize(FILE* f){
i64 r = IFWIN(_ftelli64, ftello64)(f);
if(r < 0){

View File

@ -1,5 +1,6 @@
#pragma once
#define _LARGEFILE64_SOURCE 1
#include "tlibc/filesystem.h"
#if TLIBC_FS_USE_WINDOWS_H
#include <windows.h>