Skip to content

Commit

Permalink
MSVC: Remove constexpr hack
Browse files Browse the repository at this point in the history
Refs: gh-119
Signed-off-by: Matthias Kretz <kretz@kde.org>
  • Loading branch information
mattkretz committed Apr 22, 2016

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent ea2b409 commit 24780c4
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions include/Vc/global.h
Original file line number Diff line number Diff line change
@@ -125,21 +125,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// the Win32 ABI can't handle function parameters with alignment >= 16
#define Vc_PASSING_VECTOR_BY_VALUE_IS_BROKEN 1
#endif

#if defined(__GNUC__) && !defined(Vc_NO_INLINE_ASM)
#define Vc_GNU_ASM 1
#endif

#if defined(Vc_MSVC) && Vc_MSVC < 180000000
// MSVC doesn't know constexpr and noexcept
// first include the check that forbids macroizing keywords >:)
#include <xkeycheck.h>
#ifndef constexpr
#define constexpr inline __forceinline
#endif
#define Vc_NO_NOEXCEPT 1
#endif


#ifdef Vc_GCC
# define Vc_HAVE_MAX_ALIGN_T 1
#elif !defined(Vc_CLANG) && !defined(Vc_ICC)

0 comments on commit 24780c4

Please sign in to comment.