mirror of
https://github.com/thunderbrewhq/bc.git
synced 2025-12-12 01:52:30 +00:00
fix(file): aggressively turn off macros that mess with Win32 filestack
This commit is contained in:
parent
744a1bddec
commit
abd4efb5b5
1 changed files with 4 additions and 3 deletions
|
|
@ -9,6 +9,10 @@
|
|||
#include <handleapi.h>
|
||||
#include <minwinbase.h>
|
||||
#include <winnt.h>
|
||||
|
||||
#undef CreateDirectory
|
||||
#undef RemoveDirectory
|
||||
#undef GetFreeSpace
|
||||
#endif
|
||||
|
||||
#if defined(WHOA_SYSTEM_MAC) || defined(WHOA_SYSTEM_LINUX)
|
||||
|
|
@ -52,7 +56,6 @@ bool (GetFileInfo)(Blizzard::File::Filesystem* fs, Stacked::FileParms* parms) {
|
|||
return Stacked::GetFileInfo(parms);
|
||||
}
|
||||
|
||||
#undef GetFreeSpace
|
||||
bool (GetFreeSpace)(Blizzard::File::Filesystem* fs, Stacked::FileParms* parms) {
|
||||
return Stacked::GetFreeSpace(parms);
|
||||
}
|
||||
|
|
@ -77,7 +80,6 @@ bool (MakeAbsolutePath)(Blizzard::File::Filesystem* fs, Stacked::FileParms* parm
|
|||
return Stacked::MakeAbsolutePath(parms);
|
||||
}
|
||||
|
||||
#undef CreateDirectory
|
||||
bool (CreateDirectory)(Blizzard::File::Filesystem* fs, Stacked::FileParms* parms) {
|
||||
return Stacked::CreateDirectory(parms);
|
||||
}
|
||||
|
|
@ -94,7 +96,6 @@ bool (Open)(Blizzard::File::Filesystem* fs, Stacked::FileParms* parms) {
|
|||
return Stacked::Open(parms);
|
||||
}
|
||||
|
||||
#undef RemoveDirectory
|
||||
bool (RemoveDirectory)(Blizzard::File::Filesystem* fs, Stacked::FileParms* parms) {
|
||||
return Stacked::RemoveDirectory(parms);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue