From 31e8efde08a9ac4f637a017e54f00f1b37f92e61 Mon Sep 17 00:00:00 2001 From: Alexander Kabaev Date: Sat, 27 Oct 2012 17:39:36 +0000 Subject: [PATCH] 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(+) diff --git a/contrib/gcc/config/i386/xmmintrin.h b/contrib/gcc/config/i386/xmmintrin.h index 35417ec9b6c..3eea743c68c 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. */ -- 2.45.2