[cfe-commits] r127654 - /cfe/trunk/lib/Headers/mm_malloc.h

NAKAMURA Takumi geek4civic at gmail.com
Mon Mar 14 19:32:43 PDT 2011


Author: chapuni
Date: Mon Mar 14 21:32:43 2011
New Revision: 127654

URL: http://llvm.org/viewvc/llvm-project?rev=127654&view=rev
Log:
lib/Headers/mm_malloc.h: On Windows, we can expect _mm_malloc would be provided as macro by <malloc.h>.

Modified:
    cfe/trunk/lib/Headers/mm_malloc.h

Modified: cfe/trunk/lib/Headers/mm_malloc.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/mm_malloc.h?rev=127654&r1=127653&r2=127654&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/mm_malloc.h (original)
+++ cfe/trunk/lib/Headers/mm_malloc.h Mon Mar 14 21:32:43 2011
@@ -40,6 +40,7 @@
 #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 @@
 {
   free(p);
 }
+#endif
 
 #endif /* __MM_MALLOC_H */





More information about the cfe-commits mailing list