From c58b1b6257e34727f87839fd1d935ccbaf484607 Mon Sep 17 00:00:00 2001 From: kgv Date: Fri, 5 Aug 2016 19:05:19 +0000 Subject: [PATCH] 0027754: Configuration - fix compilation of Standard.cxx on non-x86 desktop systems --- src/Standard/Standard.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Standard/Standard.cxx b/src/Standard/Standard.cxx index edd261483f..a976f865ce 100644 --- a/src/Standard/Standard.cxx +++ b/src/Standard/Standard.cxx @@ -29,7 +29,7 @@ #if defined(_MSC_VER) || defined(__ANDROID__) || defined(__QNX__) #include -#elif (defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 1) +#elif (defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 1 && defined(__i386)) #include #else extern "C" int posix_memalign (void** thePtr, size_t theAlign, size_t theSize); @@ -266,7 +266,7 @@ Standard_Address Standard::AllocateAligned (const Standard_Size theSize, return _aligned_malloc (theSize, theAlign); #elif defined(__ANDROID__) || defined(__QNX__) return memalign (theAlign, theSize); -#elif (defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 1) +#elif (defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 1 && defined(__i386)) return _mm_malloc (theSize, theAlign); #else void* aPtr; @@ -289,7 +289,7 @@ void Standard::FreeAligned (Standard_Address thePtrAligned) _aligned_free (thePtrAligned); #elif defined(__ANDROID__) || defined(__QNX__) free (thePtrAligned); -#elif (defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 1) +#elif (defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 1 && defined(__i386)) _mm_free (thePtrAligned); #else free (thePtrAligned);