Skip to content

Commit

Permalink
hacks
Browse files Browse the repository at this point in the history
Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb authored and Steam Deck User committed Jan 8, 2024
1 parent 236a3a5 commit 217cec0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/fs_win32.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ int fs_win32_openUTF8 (const char *path, int oflag, int pmode);
#define mkdir(a,b) fs_win32_mkdirUTF8((a),(b))
int fs_win32_mkdirUTF8 (const char *path, mode_t mode);

#undef stat
#undef fstat
#define stat fs_win32_stati64UTF8
#define fstat(fd,st) _fstati64((fd),(struct _stati64 *)(st))
//#undef stat
//#undef fstat
//#define stat fs_win32_stati64UTF8
//#define fstat(fd,st) _fstati64((fd),(struct _stati64 *)(st))

/*('#define stat fs_win32_stati64UTF8' must handle 'struct stat' definitions)*/
struct fs_win32_stati64UTF8 {
#if 1 /*(?non-standard?) (appears to work)*/
#if 0 /*(?non-standard?) (appears to work)*/
struct _stati64; /*(intentionally unnamed for transparent struct)*/
#else
/* /usr/x86_64-w64-mingw32/sys-root/mingw/include/_mingw_stat64.h */
Expand Down

0 comments on commit 217cec0

Please sign in to comment.