1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

fix <cstddef> include, for clang 3.5 earlier with libstdc++ 20140422 or later

This commit is contained in:
bolero-MURAKAMI 2014-04-30 16:30:26 +09:00
parent 74f79f3717
commit 3c4a048f25
263 changed files with 311 additions and 270 deletions

View file

@ -0,0 +1,28 @@
/*=============================================================================
Copyright (c) 2011-2014 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
=============================================================================*/
#ifndef SPROUT_WORKAROUND_STD_CSTDDEF_HPP
#define SPROUT_WORKAROUND_STD_CSTDDEF_HPP
#include <sprout/config.hpp>
#if defined(__clang__) && defined(__GLIBCXX__)
# if (__clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 5)) && (__GLIBCXX__ >= 20140422)
# include <stddef.h>
#
# if defined(__STDDEF_H)
struct max_align_t {
long long __max_align_ll __attribute__((__aligned__(__alignof__(long long))));
long double __max_align_ld __attribute__((__aligned__(__alignof__(long double))));
};
# endif
# endif
#endif
#include <cstddef>
#endif // #ifndef SPROUT_WORKAROUND_STD_CSTDDEF_HPP