mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0027801: Configuration - fix compilation of Standard.cxx when using MinGW-W64
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
|
||||
#if defined(_MSC_VER) || defined(__ANDROID__) || defined(__QNX__)
|
||||
#include <malloc.h>
|
||||
#elif (defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 1 && defined(__i386))
|
||||
#elif (defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 1 && (defined(__i386) || defined(__x86_64)))
|
||||
#include <mm_malloc.h>
|
||||
#else
|
||||
extern "C" int posix_memalign (void** thePtr, size_t theAlign, size_t theSize);
|
||||
@@ -274,7 +274,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 && defined(__i386))
|
||||
#elif (defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 1 && (defined(__i386) || defined(__x86_64)))
|
||||
return _mm_malloc (theSize, theAlign);
|
||||
#else
|
||||
void* aPtr;
|
||||
@@ -297,7 +297,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 && defined(__i386))
|
||||
#elif (defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 1 && (defined(__i386) || defined(__x86_64)))
|
||||
_mm_free (thePtrAligned);
|
||||
#else
|
||||
free (thePtrAligned);
|
||||
|
Reference in New Issue
Block a user