From: Andrei Tatar Date: Mon, 17 Jul 2023 20:04:37 +0000 (+0200) Subject: Add compatibility with gcc <= 11 X-Git-Tag: RELEASE-0.14.0~5 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1bedc163c793fc35cade692c441c17d88131259f;p=unikraft%2Flibs%2Fintel-intrinsics.git Add compatibility with gcc <= 11 Implementations based off headers in GCC release 11.4.0. Signed-off-by: Andrei Tatar Reviewed-by: Maria Sfiraiala Reviewed-by: Radu Nichita Approved-by: Razvan Deaconescu Tested-by: Unikraft CI GitHub-Closes: #3 --- diff --git a/include-gcc/immintrin.h b/include-gcc/immintrin.h index ca1c509..0845e42 100644 --- a/include-gcc/immintrin.h +++ b/include-gcc/immintrin.h @@ -100,11 +100,13 @@ #include +#if (__GNUC__ >= 12) #ifdef __SSE2__ #include #include #endif +#endif #include @@ -120,6 +122,7 @@ #include +#if (__GNUC__ >= 12) #ifdef __SSE2__ #include @@ -129,6 +132,7 @@ #include #endif #endif +#endif #include