mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
net.endian: resolution dependence on Boost
This commit is contained in:
parent
74669a5a8a
commit
f2c09dd3af
139 changed files with 4800 additions and 202 deletions
32
sprout/predef/os/bsd/bsdi.hpp
Normal file
32
sprout/predef/os/bsd/bsdi.hpp
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2015 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_PREDEF_OS_BSD_BSDI_HPP
|
||||
#define SPROUT_PREDEF_OS_BSD_BSDI_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/predef/os/bsd.hpp>
|
||||
|
||||
#define SPROUT_OS_BSD_BSDI 0
|
||||
|
||||
#if !defined(SPROUT_PREDEF_DETAIL_OS_DETECTED) && defined(__bsdi__)
|
||||
# ifndef SPROUT_OS_BSD_AVAILABLE
|
||||
# define SPROUT_OS_BSD 1
|
||||
# define SPROUT_OS_BSD_AVAILABLE
|
||||
# endif
|
||||
# undef SPROUT_OS_BSD_BSDI
|
||||
# define SPROUT_OS_BSD_BSDI 1
|
||||
#endif
|
||||
|
||||
#if SPROUT_OS_BSD_BSDI
|
||||
# define SPROUT_OS_BSD_BSDI_AVAILABLE
|
||||
# include <sprout/predef/detail/os_detected.hpp>
|
||||
#endif
|
||||
|
||||
#define SPROUT_OS_BSD_BSDI_NAME "BSDi BSD/OS"
|
||||
|
||||
#endif // #ifndef SPROUT_PREDEF_OS_BSD_BSDI_HPP
|
34
sprout/predef/os/bsd/dragonfly.hpp
Normal file
34
sprout/predef/os/bsd/dragonfly.hpp
Normal file
|
@ -0,0 +1,34 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2015 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_PREDEF_OS_BSD_DRADONFLY_HPP
|
||||
#define SPROUT_PREDEF_OS_BSD_DRADONFLY_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/predef/os/bsd.hpp>
|
||||
|
||||
#define SPROUT_OS_BSD_DRAGONFLY 0
|
||||
|
||||
#if !defined(SPROUT_PREDEF_DETAIL_OS_DETECTED) && defined(__DragonFly__)
|
||||
# ifndef SPROUT_OS_BSD_AVAILABLE
|
||||
# define SPROUT_OS_BSD 1
|
||||
# define SPROUT_OS_BSD_AVAILABLE
|
||||
# endif
|
||||
# undef SPROUT_OS_BSD_DRAGONFLY
|
||||
# if defined(__DragonFly__)
|
||||
# define SPROUT_OS_DRAGONFLY_BSD 1
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if SPROUT_OS_BSD_DRAGONFLY
|
||||
# define SPROUT_OS_BSD_DRAGONFLY_AVAILABLE
|
||||
# include <sprout/predef/detail/os_detected.hpp>
|
||||
#endif
|
||||
|
||||
#define SPROUT_OS_BSD_DRAGONFLY_NAME "DragonFly BSD"
|
||||
|
||||
#endif // #ifndef SPROUT_PREDEF_OS_BSD_DRADONFLY_HPP
|
43
sprout/predef/os/bsd/free.hpp
Normal file
43
sprout/predef/os/bsd/free.hpp
Normal file
|
@ -0,0 +1,43 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2015 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_PREDEF_OS_BSD_FREE_HPP
|
||||
#define SPROUT_PREDEF_OS_BSD_FREE_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/predef/os/bsd.hpp>
|
||||
#include <sprout/predef/make.hpp>
|
||||
|
||||
#define SPROUT_OS_BSD_FREE 0
|
||||
|
||||
#if !defined(SPROUT_PREDEF_DETAIL_OS_DETECTED) && defined(__FreeBSD__)
|
||||
# ifndef SPROUT_OS_BSD_AVAILABLE
|
||||
# define SPROUT_OS_BSD 1
|
||||
# define SPROUT_OS_BSD_AVAILABLE
|
||||
# endif
|
||||
# undef SPROUT_OS_BSD_FREE
|
||||
# if defined(__FreeBSD_version)
|
||||
# if __FreeBSD_version < 500000
|
||||
# define SPROUT_OS_BSD_FREE \
|
||||
SPROUT_PREDEF_MAKE_10_VRP000(__FreeBSD_version)
|
||||
# else
|
||||
# define SPROUT_OS_BSD_FREE \
|
||||
SPROUT_PREDEF_MAKE_10_VRR000(__FreeBSD_version)
|
||||
# endif
|
||||
# else
|
||||
# define SPROUT_OS_BSD_FREE 1
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if SPROUT_OS_BSD_FREE
|
||||
# define SPROUT_OS_BSD_FREE_AVAILABLE
|
||||
# include <sprout/predef/detail/os_detected.hpp>
|
||||
#endif
|
||||
|
||||
#define SPROUT_OS_BSD_FREE_NAME "Free BSD"
|
||||
|
||||
#endif // #ifndef SPROUT_PREDEF_OS_BSD_BSDI_HPP
|
63
sprout/predef/os/bsd/net.hpp
Normal file
63
sprout/predef/os/bsd/net.hpp
Normal file
|
@ -0,0 +1,63 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2015 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_PREDEF_OS_BSD_NET_HPP
|
||||
#define SPROUT_PREDEF_OS_BSD_NET_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/predef/os/bsd.hpp>
|
||||
#include <sprout/predef/make.hpp>
|
||||
#include <sprout/predef/version_number.hpp>
|
||||
|
||||
#define SPROUT_OS_BSD_NET 0
|
||||
|
||||
#if !defined(SPROUT_PREDEF_DETAIL_OS_DETECTED) && defined(__NETBSD__) || defined(__NetBSD__)
|
||||
# ifndef SPROUT_OS_BSD_AVAILABLE
|
||||
# define SPROUT_OS_BSD 1
|
||||
# define SPROUT_OS_BSD_AVAILABLE
|
||||
# endif
|
||||
# undef SPROUT_OS_BSD_NET
|
||||
# if defined(__NETBSD__)
|
||||
# if defined(__NETBSD_version)
|
||||
# if __NETBSD_version < 500000
|
||||
# define SPROUT_OS_BSD_NET \
|
||||
SPROUT_PREDEF_MAKE_10_VRP000(__NETBSD_version)
|
||||
# else
|
||||
# define SPROUT_OS_BSD_NET \
|
||||
SPROUT_PREDEF_MAKE_10_VRR000(__NETBSD_version)
|
||||
# endif
|
||||
# else
|
||||
# define SPROUT_OS_BSD_NET 1
|
||||
# endif
|
||||
# elif defined(__NetBSD__)
|
||||
# if !defined(SPROUT_OS_BSD_NET) && defined(NetBSD0_8)
|
||||
# define SPROUT_OS_BSD_NET SPROUT_VERSION_NUMBER(0, 8, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_NET) && defined(NetBSD0_9)
|
||||
# define SPROUT_OS_BSD_NET SPROUT_VERSION_NUMBER(0, 9, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_NET) && defined(NetBSD1_0)
|
||||
# define SPROUT_OS_BSD_NET SPROUT_VERSION_NUMBER(1, 0, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_NET) && defined(__NetBSD_Version)
|
||||
# define SPROUT_OS_BSD_NET \
|
||||
SPROUT_PREDEF_MAKE_10_VVRR00PP00(__NetBSD_Version)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_NET)
|
||||
# define SPROUT_OS_BSD_NET 1
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if SPROUT_OS_BSD_NET
|
||||
# define SPROUT_OS_BSD_NET_AVAILABLE
|
||||
# include <sprout/predef/detail/os_detected.hpp>
|
||||
#endif
|
||||
|
||||
#define SPROUT_OS_BSD_NET_NAME "DragonFly BSD"
|
||||
|
||||
#endif // #ifndef SPROUT_PREDEF_OS_BSD_NET_HPP
|
127
sprout/predef/os/bsd/open.hpp
Normal file
127
sprout/predef/os/bsd/open.hpp
Normal file
|
@ -0,0 +1,127 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2015 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_PREDEF_OS_BSD_OPEN_HPP
|
||||
#define SPROUT_PREDEF_OS_BSD_OPEN_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/predef/os/bsd.hpp>
|
||||
#include <sprout/predef/version_number.hpp>
|
||||
|
||||
#define SPROUT_OS_BSD_OPEN 0
|
||||
|
||||
#if !defined(SPROUT_PREDEF_DETAIL_OS_DETECTED) && ( \
|
||||
defined(__OpenBSD__) \
|
||||
)
|
||||
# ifndef SPROUT_OS_BSD_AVAILABLE
|
||||
# define SPROUT_OS_BSD 1
|
||||
# define SPROUT_OS_BSD_AVAILABLE
|
||||
# endif
|
||||
# undef SPROUT_OS_BSD_OPEN
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD2_0)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(2, 0, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD2_1)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(2, 1, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD2_2)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(2, 2, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD2_3)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(2, 3, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD2_4)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(2, 4, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD2_5)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(2, 5, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD2_6)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(2, 6, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD2_7)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(2, 7, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD2_8)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(2, 8, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD2_9)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(2, 9, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD3_0)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(3, 0, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD3_1)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(3, 1, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD3_2)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(3, 2, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD3_3)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(3, 3, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD3_4)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(3, 4, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD3_5)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(3, 5, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD3_6)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(3, 6, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD3_7)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(3, 7, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD3_8)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(3, 8, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD3_9)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(3, 9, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD4_0)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(4, 0, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD4_1)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(4, 1, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD4_2)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(4, 2, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD4_3)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(4, 3, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD4_4)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(4, 4, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD4_5)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(4, 5, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD4_6)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(4, 6, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD4_7)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(4, 7, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD4_8)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(4, 8, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN) && defined(OpenBSD4_9)
|
||||
# define SPROUT_OS_BSD_OPEN SPROUT_VERSION_NUMBER(4, 9, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD_OPEN)
|
||||
# define SPROUT_OS_BSD_OPEN 1
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if SPROUT_OS_BSD_OPEN
|
||||
# define SPROUT_OS_BSD_OPEN_AVAILABLE
|
||||
# include <sprout/predef/detail/os_detected.hpp>
|
||||
#endif
|
||||
|
||||
#define SPROUT_OS_BSD_OPEN_NAME "OpenBSD"
|
||||
|
||||
#endif // #ifndef SPROUT_PREDEF_OS_BSD_OPEN_HPP
|
Loading…
Add table
Add a link
Reference in a new issue