From 728490a4bf2e6c22d2e9d983fe6d232bd990272d Mon Sep 17 00:00:00 2001 From: kobalicek Date: Sun, 11 Jan 2015 20:57:19 +0100 Subject: [PATCH] CpuInfo and X86CpuInfo can now compile under VS2003. --- src/asmjit/base/cpuinfo.h | 2 +- src/asmjit/x86/x86cpuinfo.h | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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