diff options
author | Viktor Chlumský <viktor.chlumsky@gmail.com> | 2022-10-09 14:05:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-09 14:05:20 +0300 |
commit | bb3dc125fa04f98351b2c0dba4dd5193793e98aa (patch) | |
tree | 0e52ea6dd59181039a4f46805eb85aa5d82b3b3d | |
parent | 8dd64c32ac5113e15d3450987b780b0f117b5fed (diff) |
Visual Studio 2015/2017 compatibility (#383)
-rw-r--r-- | src/asmjit/core/api-config.h | 2 | ||||
-rw-r--r-- | src/asmjit/core/emitterutils_p.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/asmjit/core/api-config.h b/src/asmjit/core/api-config.h index a0fb979..5e7b54d 100644 --- a/src/asmjit/core/api-config.h +++ b/src/asmjit/core/api-config.h @@ -586,7 +586,7 @@ namespace asmjit { //! \def ASMJIT_DEFINE_ENUM_COMPARE(T) //! //! Defines comparison operations for enumeration flags. -#ifdef _DOXYGEN +#if defined(_DOXYGEN) || (defined(_MSC_VER) && _MSC_VER <= 1900) #define ASMJIT_DEFINE_ENUM_COMPARE(T) #else #define ASMJIT_DEFINE_ENUM_COMPARE(T) \ diff --git a/src/asmjit/core/emitterutils_p.h b/src/asmjit/core/emitterutils_p.h index 2f7370a..8b6e1e0 100644 --- a/src/asmjit/core/emitterutils_p.h +++ b/src/asmjit/core/emitterutils_p.h @@ -23,7 +23,7 @@ namespace EmitterUtils { //! Default paddings used by Emitter utils and Formatter. -static constexpr Operand noExt[3]; +static constexpr Operand noExt[3] = { {}, {}, {} }; enum kOpIndex : uint32_t { kOp3 = 0, |