Use protected version of the malloc attribute in case source wants to

define malloc as macro.


git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@180727 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Joerg Sonnenberger
2013-04-29 19:52:08 +00:00
parent a9b94f1337
commit 155f06018e

View File

@@ -423,7 +423,7 @@ template <unsigned> struct __static_assert_check {};
#endif
#ifdef __GNUC__
#define _NOALIAS __attribute__((malloc))
#define _NOALIAS __attribute__((__malloc__))
#else
#define _NOALIAS
#endif