From e35e8bb64d77a50a4bb2126899fcbc13839576dc Mon Sep 17 00:00:00 2001 From: kan Date: Sat, 27 Oct 2012 17:39:36 +0000 Subject: Follow clang lead and include mm_malloc.h only in hosted configurations. This makes the use of intrinsics easier in kernel environment, according to the submitter. Requested by: jmg --- contrib/gcc/config/i386/xmmintrin.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'contrib/gcc') diff --git a/contrib/gcc/config/i386/xmmintrin.h b/contrib/gcc/config/i386/xmmintrin.h index 35417ec..3eea743 100644 --- a/contrib/gcc/config/i386/xmmintrin.h +++ b/contrib/gcc/config/i386/xmmintrin.h @@ -39,7 +39,9 @@ #include /* Get _mm_malloc () and _mm_free (). */ +#if __STDC_HOSTED__ #include +#endif /* The Intel API is flexible enough that we must allow aliasing with other vector types, and their scalar components. */ -- cgit v1.1