diff --git a/src/asmjit/base/cpuinfo.h b/src/asmjit/base/cpuinfo.h index 6facdec..04abb62 100644 --- a/src/asmjit/base/cpuinfo.h +++ b/src/asmjit/base/cpuinfo.h @@ -59,7 +59,7 @@ struct CpuInfo { // [Construction / Destruction] // -------------------------------------------------------------------------- - ASMJIT_INLINE CpuInfo(uint32_t size = sizeof(CpuInfo)) : _size(size) {} + ASMJIT_INLINE CpuInfo(uint32_t size) : _size(size) {} // -------------------------------------------------------------------------- // [Accessors] diff --git a/src/asmjit/x86/x86cpuinfo.h b/src/asmjit/x86/x86cpuinfo.h index 91d8cc0..96e1962 100644 --- a/src/asmjit/x86/x86cpuinfo.h +++ b/src/asmjit/x86/x86cpuinfo.h @@ -200,8 +200,7 @@ struct X86CpuInfo : public CpuInfo { // [Construction / Destruction] // -------------------------------------------------------------------------- - ASMJIT_INLINE X86CpuInfo(uint32_t size = sizeof(X86CpuInfo)) : - CpuInfo(size) {} + ASMJIT_INLINE X86CpuInfo(); // -------------------------------------------------------------------------- // [Accessors] @@ -252,6 +251,9 @@ struct X86CpuInfo : public CpuInfo { uint32_t _maxLogicalProcessors; }; +ASMJIT_INLINE X86CpuInfo::X86CpuInfo() : + CpuInfo(sizeof(X86CpuInfo)) {} + //! \} } // asmjit namespace