|
From: | Chris Simpkins |
Subject: | Re: max_align_t fails with clang 6.1 on OS X 10.10 |
Date: | Wed, 30 Aug 2017 10:38:30 -0400 |
#if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L #if !defined(__CLANG_MAX_ALIGN_T_DEFINED) || __has_feature(modules) #if defined(_MSC_VER) typedef double max_align_t; #elif defined(__APPLE__) typedef long double max_align_t; #else // Define 'max_align_t' to match the GCC definition. typedef struct { long long __clang_max_align_nonce1 __attribute__((__aligned__(__alignof__(long long)))); long double __clang_max_align_nonce2 __attribute__((__aligned__(__alignof__(long double)))); } max_align_t; #endif
Werner LEMBERG wrote:
Shall I simply add
AC_LANG_PUSH([C++])
right before the call to
gl_INIT
in my `configure.ac' file?
It's worth a try, yes. If it creates other problems, we can look into these.
Bruno
[Prev in Thread] | Current Thread | [Next in Thread] |