mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2024-11-12 21:09:01 +00:00
40 lines
1.3 KiB
C++
40 lines
1.3 KiB
C++
|
/*=============================================================================
|
||
|
Copyright (c) 2011-2013 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_BASE_CLASS_CONSTRUCT_HPP
|
||
|
#define SPROUT_WORKAROUND_BASE_CLASS_CONSTRUCT_HPP
|
||
|
|
||
|
#include <sprout/config.hpp>
|
||
|
|
||
|
//
|
||
|
// SPROUT_NEEDS_EXPLICIT_EMPTY_BASE_CLASS_CONSTRUCT
|
||
|
//
|
||
|
#ifndef SPROUT_NEEDS_EXPLICIT_EMPTY_BASE_CLASS_CONSTRUCT
|
||
|
# if defined(__clang__)
|
||
|
# if (__clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4))
|
||
|
# define SPROUT_NEEDS_EXPLICIT_EMPTY_BASE_CLASS_CONSTRUCT 1
|
||
|
# else
|
||
|
# define SPROUT_NEEDS_EXPLICIT_EMPTY_BASE_CLASS_CONSTRUCT 0
|
||
|
# endif
|
||
|
# else
|
||
|
# define SPROUT_NEEDS_EXPLICIT_EMPTY_BASE_CLASS_CONSTRUCT 0
|
||
|
# endif
|
||
|
#endif
|
||
|
|
||
|
//
|
||
|
// SPROUT_EXPLICIT_EMPTY_BASE_CLASS_CONSTRUCT
|
||
|
//
|
||
|
#ifndef SPROUT_EXPLICIT_EMPTY_BASE_CLASS_CONSTRUCT
|
||
|
# if SPROUT_NEEDS_EXPLICIT_EMPTY_BASE_CLASS_CONSTRUCT
|
||
|
# define SPROUT_EXPLICIT_EMPTY_BASE_CLASS_CONSTRUCT(base) base()
|
||
|
# else
|
||
|
# define SPROUT_EXPLICIT_EMPTY_BASE_CLASS_CONSTRUCT(base)
|
||
|
# endif
|
||
|
#endif
|
||
|
|
||
|
#endif // #ifndef SPROUT_WORKAROUND_BASE_CLASS_CONSTRUCT_HPP
|