header fix for linux
This commit is contained in:
parent
d04aac567f
commit
a097d5aff9
@ -1,4 +1,3 @@
|
|||||||
#include "tlibc/filesystem.h"
|
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
bool dir_exists(cstr path){
|
bool dir_exists(cstr path){
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
#include "tlibc/filesystem.h"
|
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
bool file_exists(cstr path){
|
bool file_exists(cstr path){
|
||||||
@ -46,6 +45,8 @@ Result(FILE*) file_openOrCreateReadWrite(cstr file_name){
|
|||||||
return RESULT_VALUE(p, f);
|
return RESULT_VALUE(p, f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Result(i64) file_getSize(FILE* f){
|
Result(i64) file_getSize(FILE* f){
|
||||||
i64 r = IFWIN(_ftelli64, ftello64)(f);
|
i64 r = IFWIN(_ftelli64, ftello64)(f);
|
||||||
if(r < 0){
|
if(r < 0){
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#define _LARGEFILE64_SOURCE 1
|
||||||
#include "tlibc/filesystem.h"
|
#include "tlibc/filesystem.h"
|
||||||
#if TLIBC_FS_USE_WINDOWS_H
|
#if TLIBC_FS_USE_WINDOWS_H
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user