Build: Undef weird mingw macros for precompiled header support

This commit is contained in:
James Rowe
2018-08-22 18:36:32 -06:00
parent d350f59864
commit 55c3ec60a7
3 changed files with 20 additions and 0 deletions

View File

@@ -17,6 +17,15 @@ enum {
};
}
// When using mingw precompiled headers, it pulls in some dark corners of the stdlib that defines
// these as macros
#ifdef ERROR_PATH_NOT_FOUND
#undef ERROR_PATH_NOT_FOUND
#endif
#ifdef ERROR_FILE_NOT_FOUND
#undef ERROR_FILE_NOT_FOUND
#endif
constexpr ResultCode ERROR_PATH_NOT_FOUND(ErrorModule::FS, ErrCodes::NotFound);
// TODO(bunnei): Replace these with correct errors for Switch OS

View File

@@ -13,6 +13,12 @@
#include "core/hle/service/time/interface.h"
#include "core/hle/service/time/time.h"
// When using mingw precompiled headers, it pulls in some dark corners of the stdlib that defines
// GetCurrentTime as a macro
#ifdef GetCurrentTime
#undef GetCurrentTime
#endif
namespace Service::Time {
class ISystemClock final : public ServiceFramework<ISystemClock> {

View File

@@ -12,6 +12,11 @@
namespace Loader {
// When using mingw precompiled headers, it pulls in some dark corners of the stdlib that defines
// RELATIVE as a macro
#ifdef RELATIVE
#undef RELATIVE
#endif
enum class RelocationType : u32 { ABS64 = 257, GLOB_DAT = 1025, JUMP_SLOT = 1026, RELATIVE = 1027 };
enum DynamicType : u32 {