mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-23 07:12:46 +01:00
Common: Move IO-specific compatibility macros to file_util.cpp
This commit is contained in:
parent
bf12f270b3
commit
f3c096951b
2 changed files with 26 additions and 26 deletions
|
@ -117,14 +117,6 @@ inline u64 _rotr64(u64 x, unsigned int shift){
|
||||||
return old_locale;
|
return old_locale;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 64 bit offsets for windows
|
|
||||||
#define fseeko _fseeki64
|
|
||||||
#define ftello _ftelli64
|
|
||||||
#define atoll _atoi64
|
|
||||||
#define stat64 _stat64
|
|
||||||
#define fstat64 _fstat64
|
|
||||||
#define fileno _fileno
|
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
__declspec(dllimport) void __stdcall DebugBreak(void);
|
__declspec(dllimport) void __stdcall DebugBreak(void);
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,14 @@
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#include <direct.h> // getcwd
|
#include <direct.h> // getcwd
|
||||||
#include <tchar.h>
|
#include <tchar.h>
|
||||||
|
|
||||||
|
// 64 bit offsets for windows
|
||||||
|
#define fseeko _fseeki64
|
||||||
|
#define ftello _ftelli64
|
||||||
|
#define atoll _atoi64
|
||||||
|
#define stat64 _stat64
|
||||||
|
#define fstat64 _fstat64
|
||||||
|
#define fileno _fileno
|
||||||
#else
|
#else
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
Loading…
Reference in a new issue