bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: max_align_t fails with clang 6.1 on OS X 10.10


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

Full gnulib stddef.h header file requested by Werner available here: https://gist.github.com/chrissimpkins/6e76999d84ca6ff36cf8f7ef047997f4

max_align_t definition from `cat /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.1.0/include/stddef.h` on Travis OS X 10.10 builds:

#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



On Aug 30, 2017, 3:45 AM -0400, Bruno Haible <address@hidden>, wrote:
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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]