From: NAKAMURA Takumi Date: Tue, 15 Mar 2011 02:32:43 +0000 (+0000) Subject: lib/Headers/mm_malloc.h: On Windows, we can expect _mm_malloc would be provided as... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0a6475763e0d194464302d954a9571fae0a6a99;p=clang lib/Headers/mm_malloc.h: On Windows, we can expect _mm_malloc would be provided as macro by . git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127654 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Headers/mm_malloc.h b/lib/Headers/mm_malloc.h index e7da543458..ec9236204b 100644 --- a/lib/Headers/mm_malloc.h +++ b/lib/Headers/mm_malloc.h @@ -40,6 +40,7 @@ extern "C" int posix_memalign(void **memptr, size_t alignment, size_t size); #endif #endif +#if !(defined(_WIN32) && defined(_mm_malloc)) static __inline__ void *__attribute__((__always_inline__, __nodebug__, __malloc__)) _mm_malloc(size_t size, size_t align) @@ -67,5 +68,6 @@ _mm_free(void *p) { free(p); } +#endif #endif /* __MM_MALLOC_H */