Skip to content

Commit

Permalink
Check if symbols are defined before using them
Browse files Browse the repository at this point in the history
The C pre-processors symbols we are using to decide whether SSE builtins
are available need to be checked for being defined, before we can use
them in comparisons.

Fixes #114
  • Loading branch information
ebassi committed Apr 9, 2018
1 parent 0585442 commit 939c273
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/graphene-config.h.meson
Expand Up @@ -12,7 +12,10 @@ extern "C" {

#ifndef GRAPHENE_SIMD_BENCHMARK

# if defined(__SSE__) || (_M_IX86_FP > 0) || (_M_X64 > 0) || (_MSC_VER >= 1800)
# if defined(__SSE__) || \
(defined(_M_IX86_FP) && (_M_IX86_FP > 0)) || \
(defined(_M_X64) && (_M_X64 > 0)) || \
(defined(_MSC_VER) && (_MSC_VER >= 1800))
#mesondefine GRAPHENE_HAS_SSE
# endif

Expand Down

0 comments on commit 939c273

Please sign in to comment.