diff options
author | Eric Fiselier <eric@efcs.ca> | 2018-10-11 03:01:14 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2018-10-11 03:01:14 +0000 |
commit | 49d44859b4dc129eb4585fd9ad4510802582b327 (patch) | |
tree | e0b9a129cc57a0c604f31c59c2996fca2865998f /libcxxabi | |
parent | e58787e5e52e15e6acdfefc5ab05ca4cea0ebcb5 (diff) |
Use C++03 friendly version of alignof
Diffstat (limited to 'libcxxabi')
-rw-r--r-- | libcxxabi/src/fallback_malloc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxxabi/src/fallback_malloc.cpp b/libcxxabi/src/fallback_malloc.cpp index 150a4bb608a..202a46732a3 100644 --- a/libcxxabi/src/fallback_malloc.cpp +++ b/libcxxabi/src/fallback_malloc.cpp @@ -216,7 +216,7 @@ void* __aligned_malloc_with_fallback(size_t size) { if (size == 0) size = 1; void* dest; - if (::posix_memalign(&dest, alignof(__aligned_type), size) == 0) + if (::posix_memalign(&dest, __alignof(__aligned_type), size) == 0) return dest; #endif return fallback_malloc(size); |