diff options
author | Ben Wagner <bungeman@chromium.org> | 2021-07-15 11:33:16 -0400 |
---|---|---|
committer | Ben Wagner <bungeman@chromium.org> | 2021-07-15 11:33:16 -0400 |
commit | c37c08738260e267764b6d6a8d4469eaa1e6568a (patch) | |
tree | 8d7245aec2fa031fef242f6fd71dc0521f23b637 /src/smooth/ftgrays.c | |
parent | 56cc2ad446e920164e823e78a21972cadb339bfc (diff) | |
download | freetype2-c37c08738260e267764b6d6a8d4469eaa1e6568a.tar.gz |
Guard inclusion of emmintrin.h
Guard inclusion of emmintrin.h with "#ifdef __SSE2__". The gcc version
of this header, xmmintrin.h, and mmintrin.h check that the appropriate
defines are set before defining anything (are internally guarded).
However the clang versions of these includes are not internally guarded.
As a result of this, externally guard the inclusion of these headers.
Diffstat (limited to 'src/smooth/ftgrays.c')
-rw-r--r-- | src/smooth/ftgrays.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c index 7158cd21c..5e04ff41b 100644 --- a/src/smooth/ftgrays.c +++ b/src/smooth/ftgrays.c @@ -1009,7 +1009,9 @@ typedef ptrdiff_t FT_PtrDist; #if BEZIER_USE_DDA +#ifdef __SSE2__ #include <emmintrin.h> +#endif static void gray_render_conic( RAS_ARG_ const FT_Vector* control, |