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
42
sprout/predef/os/aix.hpp
Normal file
42
sprout/predef/os/aix.hpp
Normal file
|
@ -0,0 +1,42 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2015 Bolero MURAKAMI
|
||||
https://github.com/bolero-MURAKAMI/Sprout
|
||||
|
||||
Distributed under the sprout Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
|
||||
=============================================================================*/
|
||||
#ifndef SPROUT_PREDEF_OS_AIX_HPP
|
||||
#define SPROUT_PREDEF_OS_AIX_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/predef/version_number.hpp>
|
||||
|
||||
#define SPROUT_OS_AIX 0
|
||||
|
||||
#if !defined(SPROUT_PREDEF_DETAIL_OS_DETECTED) && (defined(_AIX) || defined(__TOS_AIX__))
|
||||
# undef SPROUT_OS_AIX
|
||||
# if !defined(SPROUT_OS_AIX) && defined(_AIX43)
|
||||
# define SPROUT_OS_AIX SPROUT_VERSION_NUMBER(4, 3, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_AIX) && defined(_AIX41)
|
||||
# define SPROUT_OS_AIX SPROUT_VERSION_NUMBER(4, 1, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_AIX) && defined(_AIX32)
|
||||
# define SPROUT_OS_AIX SPROUT_VERSION_NUMBER(3, 2, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_AIX) && defined(_AIX3)
|
||||
# define SPROUT_OS_AIX SPROUT_VERSION_NUMBER(3, 0, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_AIX)
|
||||
# define SPROUT_OS_AIX 1
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if SPROUT_OS_AIX
|
||||
# define SPROUT_OS_AIX_AVAILABLE
|
||||
# include <sprout/predef/detail/os_detected.hpp>
|
||||
#endif
|
||||
|
||||
#define SPROUT_OS_AIX_NAME "IBM AIX"
|
||||
|
||||
#endif // #ifndef SPROUT_PREDEF_OS_AIX_HPP
|
27
sprout/predef/os/amigaos.hpp
Normal file
27
sprout/predef/os/amigaos.hpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2015 Bolero MURAKAMI
|
||||
https://github.com/bolero-MURAKAMI/Sprout
|
||||
|
||||
Distributed under the sprout Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
|
||||
=============================================================================*/
|
||||
#ifndef SPROUT_PREDEF_OS_AMIGAOS_HPP
|
||||
#define SPROUT_PREDEF_OS_AMIGAOS_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
|
||||
#define SPROUT_OS_AMIGAOS 0
|
||||
|
||||
#if !defined(SPROUT_PREDEF_DETAIL_OS_DETECTED) && (defined(AMIGA) || defined(__amigaos__))
|
||||
# undef SPROUT_OS_AMIGAOS
|
||||
# define SPROUT_OS_AMIGAOS 1
|
||||
#endif
|
||||
|
||||
#if SPROUT_OS_AMIGAOS
|
||||
# define SPROUT_OS_AMIGAOS_AVAILABLE
|
||||
# include <sprout/predef/detail/os_detected.hpp>
|
||||
#endif
|
||||
|
||||
#define SPROUT_OS_AMIGAOS_NAME "AmigaOS"
|
||||
|
||||
#endif // #ifndef SPROUT_PREDEF_OS_AMIGAOS_HPP
|
27
sprout/predef/os/android.hpp
Normal file
27
sprout/predef/os/android.hpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2015 Bolero MURAKAMI
|
||||
https://github.com/bolero-MURAKAMI/Sprout
|
||||
|
||||
Distributed under the sprout Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
|
||||
=============================================================================*/
|
||||
#ifndef SPROUT_PREDEF_OS_ADROID_HPP
|
||||
#define SPROUT_PREDEF_OS_ADROID_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
|
||||
#define SPROUT_OS_ANDROID 0
|
||||
|
||||
#if !defined(SPROUT_PREDEF_DETAIL_OS_DETECTED) && defined(__ANDROID__)
|
||||
# undef SPROUT_OS_ANDROID
|
||||
# define SPROUT_OS_ANDROID 1
|
||||
#endif
|
||||
|
||||
#if SPROUT_OS_ANDROID
|
||||
# define SPROUT_OS_ANDROID_AVAILABLE
|
||||
# include <sprout/predef/detail/os_detected.hpp>
|
||||
#endif
|
||||
|
||||
#define SPROUT_OS_ANDROID_NAME "Android"
|
||||
|
||||
#endif // #ifndef SPROUT_PREDEF_OS_ADROID_HPP
|
27
sprout/predef/os/beos.hpp
Normal file
27
sprout/predef/os/beos.hpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2015 Bolero MURAKAMI
|
||||
https://github.com/bolero-MURAKAMI/Sprout
|
||||
|
||||
Distributed under the sprout Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
|
||||
=============================================================================*/
|
||||
#ifndef SPROUT_PREDEF_OS_BEOS_HPP
|
||||
#define SPROUT_PREDEF_OS_BEOS_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
|
||||
#define SPROUT_OS_BEOS 0
|
||||
|
||||
#if !defined(SPROUT_PREDEF_DETAIL_OS_DETECTED) && defined(__BEOS__)
|
||||
# undef SPROUT_OS_BEOS
|
||||
# define SPROUT_OS_BEOS 1
|
||||
#endif
|
||||
|
||||
#if SPROUT_OS_BEOS
|
||||
# define SPROUT_OS_BEOS_AVAILABLE
|
||||
# include <sprout/predef/detail/os_detected.hpp>
|
||||
#endif
|
||||
|
||||
#define SPROUT_OS_BEOS_NAME "BeOS"
|
||||
|
||||
#endif // #ifndef SPROUT_PREDEF_OS_BEOS_HPP
|
60
sprout/predef/os/bsd.hpp
Normal file
60
sprout/predef/os/bsd.hpp
Normal file
|
@ -0,0 +1,60 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2015 Bolero MURAKAMI
|
||||
https://github.com/bolero-MURAKAMI/Sprout
|
||||
|
||||
Distributed under the sprout Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
|
||||
=============================================================================*/
|
||||
#ifndef SPROUT_PREDEF_OS_BSD_HPP
|
||||
#define SPROUT_PREDEF_OS_BSD_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/predef/version_number.hpp>
|
||||
#include <sprout/predef/make.hpp>
|
||||
#include <sprout/predef/os/macos.hpp>
|
||||
#include <sprout/predef/os/bsd/bsdi.hpp>
|
||||
#include <sprout/predef/os/bsd/dragonfly.hpp>
|
||||
#include <sprout/predef/os/bsd/free.hpp>
|
||||
#include <sprout/predef/os/bsd/open.hpp>
|
||||
#include <sprout/predef/os/bsd/net.hpp>
|
||||
|
||||
#ifndef SPROUT_OS_BSD
|
||||
#define SPROUT_OS_BSD 0
|
||||
#endif
|
||||
|
||||
#if !defined(SPROUT_PREDEF_DETAIL_OS_DETECTED) && (defined(BSD) || defined(_SYSTYPE_BSD))
|
||||
# undef SPROUT_OS_BSD
|
||||
# include <sys/param.h>
|
||||
# if !defined(SPROUT_OS_BSD) && defined(BSD4_4)
|
||||
# define SPROUT_OS_BSD SPROUT_VERSION_NUMBER(4, 4, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD) && defined(BSD4_3)
|
||||
# define SPROUT_OS_BSD SPROUT_VERSION_NUMBER(4, 3, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD) && defined(BSD4_2)
|
||||
# define SPROUT_OS_BSD SPROUT_VERSION_NUMBER(4, 2, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD) && defined(BSD)
|
||||
# define SPROUT_OS_BSD SPROUT_PREDEF_MAKE_10_VVRR(BSD)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_BSD)
|
||||
# define SPROUT_OS_BSD 1
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if SPROUT_OS_BSD
|
||||
# define SPROUT_OS_BSD_AVAILABLE
|
||||
# include <sprout/predef/detail/os_detected.hpp>
|
||||
#endif
|
||||
|
||||
#define SPROUT_OS_BSD_NAME "BSD"
|
||||
|
||||
#else // #ifndef SPROUT_PREDEF_OS_BSD_HPP
|
||||
|
||||
#include <sprout/predef/os/bsd/bsdi.hpp>
|
||||
#include <sprout/predef/os/bsd/dragonfly.hpp>
|
||||
#include <sprout/predef/os/bsd/free.hpp>
|
||||
#include <sprout/predef/os/bsd/open.hpp>
|
||||
#include <sprout/predef/os/bsd/net.hpp>
|
||||
|
||||
#endif // #ifndef SPROUT_PREDEF_OS_BSD_HPP
|
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
|
27
sprout/predef/os/cygwin.hpp
Normal file
27
sprout/predef/os/cygwin.hpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2015 Bolero MURAKAMI
|
||||
https://github.com/bolero-MURAKAMI/Sprout
|
||||
|
||||
Distributed under the sprout Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
|
||||
=============================================================================*/
|
||||
#ifndef SPROUT_PREDEF_OS_CYGWIN_HPP
|
||||
#define SPROUT_PREDEF_OS_CYGWIN_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
|
||||
#define SPROUT_OS_CYGWIN 0
|
||||
|
||||
#if !defined(SPROUT_PREDEF_DETAIL_OS_DETECTED) && defined(__CYGWIN__)
|
||||
# undef SPROUT_OS_CYGWIN
|
||||
# define SPROUT_OS_CGYWIN 1
|
||||
#endif
|
||||
|
||||
#if SPROUT_OS_CYGWIN
|
||||
# define SPROUT_OS_CYGWIN_AVAILABLE
|
||||
# include <sprout/predef/detail/os_detected.hpp>
|
||||
#endif
|
||||
|
||||
#define SPROUT_OS_CYGWIN_NAME "Cygwin"
|
||||
|
||||
#endif // #ifndef SPROUT_PREDEF_OS_CYGWIN_HPP
|
27
sprout/predef/os/haiku.hpp
Normal file
27
sprout/predef/os/haiku.hpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2015 Bolero MURAKAMI
|
||||
https://github.com/bolero-MURAKAMI/Sprout
|
||||
|
||||
Distributed under the sprout Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
|
||||
=============================================================================*/
|
||||
#ifndef SPROUT_PREDEF_OS_HAIKU_HPP
|
||||
#define SPROUT_PREDEF_OS_HAIKU_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
|
||||
#define SPROUT_OS_HAIKU 0
|
||||
|
||||
#if !defined(SPROUT_PREDEF_DETAIL_OS_DETECTED) && defined(__HAIKU__)
|
||||
# undef SPROUT_OS_HAIKU
|
||||
# define SPROUT_OS_HAIKU 1
|
||||
#endif
|
||||
|
||||
#if SPROUT_OS_HAIKU
|
||||
# define SPROUT_OS_HAIKU_AVAILABLE
|
||||
# include <sprout/predef/detail/os_detected.hpp>
|
||||
#endif
|
||||
|
||||
#define SPROUT_OS_HAIKU_NAME "Haiku"
|
||||
|
||||
#endif // #ifndef SPROUT_PREDEF_OS_HAIKU_HPP
|
27
sprout/predef/os/hpux.hpp
Normal file
27
sprout/predef/os/hpux.hpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2015 Bolero MURAKAMI
|
||||
https://github.com/bolero-MURAKAMI/Sprout
|
||||
|
||||
Distributed under the sprout Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
|
||||
=============================================================================*/
|
||||
#ifndef SPROUT_PREDEF_OS_HPUX_HPP
|
||||
#define SPROUT_PREDEF_OS_HPUX_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
|
||||
#define SPROUT_OS_HPUX 0
|
||||
|
||||
#if !defined(SPROUT_PREDEF_DETAIL_OS_DETECTED) && (defined(hpux) || defined(_hpux) || defined(__hpux))
|
||||
# undef SPROUT_OS_HPUX
|
||||
# define SPROUT_OS_HPUX 1
|
||||
#endif
|
||||
|
||||
#if SPROUT_OS_HPUX
|
||||
# define SPROUT_OS_HPUX_AVAILABLE
|
||||
# include <sprout/predef/detail/os_detected.hpp>
|
||||
#endif
|
||||
|
||||
#define SPROUT_OS_HPUX_NAME "HP-UX"
|
||||
|
||||
#endif // #ifndef SPROUT_PREDEF_OS_HPUX_HPP
|
27
sprout/predef/os/ios.hpp
Normal file
27
sprout/predef/os/ios.hpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2015 Bolero MURAKAMI
|
||||
https://github.com/bolero-MURAKAMI/Sprout
|
||||
|
||||
Distributed under the sprout Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
|
||||
=============================================================================*/
|
||||
#ifndef SPROUT_PREDEF_OS_IOS_HPP
|
||||
#define SPROUT_PREDEF_OS_IOS_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
|
||||
#define SPROUT_OS_IOS 0
|
||||
|
||||
#if !defined(SPROUT_PREDEF_DETAIL_OS_DETECTED) && (defined(__APPLE__) && defined(__MACH__) && defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__))
|
||||
# undef SPROUT_OS_IOS
|
||||
# define SPROUT_OS_IOS (__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ * 1000)
|
||||
#endif
|
||||
|
||||
#if SPROUT_OS_IOS
|
||||
# define SPROUT_OS_IOS_AVAILABLE
|
||||
# include <sprout/predef/detail/os_detected.hpp>
|
||||
#endif
|
||||
|
||||
#define SPROUT_OS_IOS_NAME "iOS"
|
||||
|
||||
#endif // #ifndef SPROUT_PREDEF_OS_IOS_HPP
|
27
sprout/predef/os/irix.hpp
Normal file
27
sprout/predef/os/irix.hpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2015 Bolero MURAKAMI
|
||||
https://github.com/bolero-MURAKAMI/Sprout
|
||||
|
||||
Distributed under the sprout Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
|
||||
=============================================================================*/
|
||||
#ifndef SPROUT_PREDEF_OS_IRIX_HPP
|
||||
#define SPROUT_PREDEF_OS_IRIX_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
|
||||
#define SPROUT_OS_IRIX 0
|
||||
|
||||
#if !defined(SPROUT_PREDEF_DETAIL_OS_DETECTED) && (defined(sgi) || defined(__sgi))
|
||||
# undef SPROUT_OS_IRIX
|
||||
# define SPROUT_OS_IRIX 1
|
||||
#endif
|
||||
|
||||
#if SPROUT_OS_IRIX
|
||||
# define SPROUT_OS_IRIX_AVAILABLE
|
||||
# include <sprout/predef/detail/os_detected.hpp>
|
||||
#endif
|
||||
|
||||
#define SPROUT_OS_IRIX_NAME "IRIX"
|
||||
|
||||
#endif // #ifndef SPROUT_PREDEF_OS_IRIX_HPP
|
27
sprout/predef/os/linux.hpp
Normal file
27
sprout/predef/os/linux.hpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2015 Bolero MURAKAMI
|
||||
https://github.com/bolero-MURAKAMI/Sprout
|
||||
|
||||
Distributed under the sprout Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
|
||||
=============================================================================*/
|
||||
#ifndef SPROUT_PREDEF_OS_LINUX_HPP
|
||||
#define SPROUT_PREDEF_OS_LINUX_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
|
||||
#define SPROUT_OS_LINUX 0
|
||||
|
||||
#if !defined(SPROUT_PREDEF_DETAIL_OS_DETECTED) && (defined(linux) || defined(__linux))
|
||||
# undef SPROUT_OS_LINUX
|
||||
# define SPROUT_OS_LINUX 1
|
||||
#endif
|
||||
|
||||
#if SPROUT_OS_LINUX
|
||||
# define SPROUT_OS_LINUX_AVAILABLE
|
||||
# include <sprout/predef/detail/os_detected.hpp>
|
||||
#endif
|
||||
|
||||
#define SPROUT_OS_LINUX_NAME "Linux"
|
||||
|
||||
#endif // #ifndef SPROUT_PREDEF_OS_LINUX_HPP
|
34
sprout/predef/os/macos.hpp
Normal file
34
sprout/predef/os/macos.hpp
Normal file
|
@ -0,0 +1,34 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2015 Bolero MURAKAMI
|
||||
https://github.com/bolero-MURAKAMI/Sprout
|
||||
|
||||
Distributed under the sprout Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
|
||||
=============================================================================*/
|
||||
#ifndef SPROUT_PREDEF_OS_MACOS_HPP
|
||||
#define SPROUT_PREDEF_OS_MACOS_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/predef/os/ios.hpp>
|
||||
#include <sprout/predef/version_number.hpp>
|
||||
|
||||
#define SPROUT_OS_MACOS 0
|
||||
|
||||
#if !defined(SPROUT_PREDEF_DETAIL_OS_DETECTED) && (defined(macintosh) || defined(Macintosh) || (defined(__APPLE__) && defined(__MACH__)))
|
||||
# undef SPROUT_OS_MACOS
|
||||
# if !defined(SPROUT_OS_MACOS) && defined(__APPLE__) && defined(__MACH__)
|
||||
# define SPROUT_OS_MACOS SPROUT_VERSION_NUMBER(10, 0, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_MACOS)
|
||||
# define SPROUT_OS_MACOS SPROUT_VERSION_NUMBER(9, 0, 0)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if SPROUT_OS_MACOS
|
||||
# define SPROUT_OS_MACOS_AVAILABLE
|
||||
# include <sprout/predef/detail/os_detected.hpp>
|
||||
#endif
|
||||
|
||||
#define SPROUT_OS_MACOS_NAME "Mac OS"
|
||||
|
||||
#endif // #ifndef SPROUT_PREDEF_OS_MACOS_HPP
|
27
sprout/predef/os/os400.hpp
Normal file
27
sprout/predef/os/os400.hpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2015 Bolero MURAKAMI
|
||||
https://github.com/bolero-MURAKAMI/Sprout
|
||||
|
||||
Distributed under the sprout Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
|
||||
=============================================================================*/
|
||||
#ifndef SPROUT_PREDEF_OS_OS400_HPP
|
||||
#define SPROUT_PREDEF_OS_OS400_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
|
||||
#define SPROUT_OS_OS400 0
|
||||
|
||||
#if !defined(SPROUT_PREDEF_DETAIL_OS_DETECTED) && defined(__OS400__)
|
||||
# undef SPROUT_OS_OS400
|
||||
# define SPROUT_OS_OS400 1
|
||||
#endif
|
||||
|
||||
#if SPROUT_OS_OS400
|
||||
# define SPROUT_OS_OS400_AVAILABLE
|
||||
# include <sprout/predef/detail/os_detected.hpp>
|
||||
#endif
|
||||
|
||||
#define SPROUT_OS_OS400_NAME "IBM OS/400"
|
||||
|
||||
#endif // #ifndef SPROUT_PREDEF_OS_OS400_HPP
|
36
sprout/predef/os/qnxnto.hpp
Normal file
36
sprout/predef/os/qnxnto.hpp
Normal file
|
@ -0,0 +1,36 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2015 Bolero MURAKAMI
|
||||
https://github.com/bolero-MURAKAMI/Sprout
|
||||
|
||||
Distributed under the sprout Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
|
||||
=============================================================================*/
|
||||
#ifndef SPROUT_PREDEF_OS_QNXNTO_HPP
|
||||
#define SPROUT_PREDEF_OS_QNXNTO_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/predef/version_number.hpp>
|
||||
|
||||
#define SPROUT_OS_QNX 0
|
||||
|
||||
#if !defined(SPROUT_PREDEF_DETAIL_OS_DETECTED) && (defined(__QNX__) || defined(__QNXNTO__))
|
||||
# undef SPROUT_OS_QNX
|
||||
# if !defined(SPROUT_OS_QNX) && defined(_NTO_VERSION)
|
||||
# define SPROUT_OS_QNX SPROUT_PREDEF_MAKE_10_VVRR(_NTO_VERSION)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_QNX) && defined(__QNX__)
|
||||
# define SPROUT_OS_QNX SPROUT_VERSION_NUMBER(4, 0, 0)
|
||||
# endif
|
||||
# if !defined(SPROUT_OS_QNX)
|
||||
# define SPROUT_OS_QNX 1
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if SPROUT_OS_QNX
|
||||
# define SPROUT_OS_QNX_AVAILABLE
|
||||
# include <sprout/predef/detail/os_detected.hpp>
|
||||
#endif
|
||||
|
||||
#define SPROUT_OS_QNX_NAME "QNX"
|
||||
|
||||
#endif // #ifndef SPROUT_PREDEF_OS_QNXNTO_HPP
|
27
sprout/predef/os/solaris.hpp
Normal file
27
sprout/predef/os/solaris.hpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2015 Bolero MURAKAMI
|
||||
https://github.com/bolero-MURAKAMI/Sprout
|
||||
|
||||
Distributed under the sprout Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
|
||||
=============================================================================*/
|
||||
#ifndef SPROUT_PREDEF_OS_SOLARIS_HPP
|
||||
#define SPROUT_PREDEF_OS_SOLARIS_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
|
||||
#define SPROUT_OS_SOLARIS 0
|
||||
|
||||
#if !defined(SPROUT_PREDEF_DETAIL_OS_DETECTED) && (defined(sun) || defined(__sun))
|
||||
# undef SPROUT_OS_SOLARIS
|
||||
# define SPROUT_OS_SOLARIS 1
|
||||
#endif
|
||||
|
||||
#if SPROUT_OS_SOLARIS
|
||||
# define SPROUT_OS_SOLARIS_AVAILABLE
|
||||
# include <sprout/predef/detail/os_detected.hpp>
|
||||
#endif
|
||||
|
||||
#define SPROUT_OS_SOLARIS_NAME "Solaris"
|
||||
|
||||
#endif // #ifndef SPROUT_PREDEF_OS_SOLARIS_HPP
|
39
sprout/predef/os/unix.hpp
Normal file
39
sprout/predef/os/unix.hpp
Normal file
|
@ -0,0 +1,39 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2015 Bolero MURAKAMI
|
||||
https://github.com/bolero-MURAKAMI/Sprout
|
||||
|
||||
Distributed under the sprout Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
|
||||
=============================================================================*/
|
||||
#ifndef SPROUT_PREDEF_OS_UNIX_HPP
|
||||
#define SPROUT_PREDEF_OS_UNIX_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
|
||||
#define SPROUT_OS_UNIX 0
|
||||
|
||||
#if defined(unix) || defined(__unix) || defined(_XOPEN_SOURCE) || defined(_POSIX_SOURCE)
|
||||
# undef SPROUT_OS_UNIX
|
||||
# define SPROUT_OS_UNIX 1
|
||||
#endif
|
||||
|
||||
#if SPROUT_OS_UNIX
|
||||
# define SPROUT_OS_UNIX_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define SPROUT_OS_UNIX_NAME "Unix Environment"
|
||||
|
||||
#define SPROUT_OS_SVR4 0
|
||||
|
||||
#if defined(__sysv__) || defined(__SVR4) || defined(__svr4__) || defined(_SYSTYPE_SVR4)
|
||||
# undef SPROUT_OS_SVR4
|
||||
# define SPROUT_OS_SVR4 1
|
||||
#endif
|
||||
|
||||
#if SPROUT_OS_SVR4
|
||||
# define SPROUT_OS_SVR4_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define SPROUT_OS_SVR4_NAME "SVR4 Environment"
|
||||
|
||||
#endif // #ifndef SPROUT_PREDEF_OS_UNIX_HPP
|
32
sprout/predef/os/vms.hpp
Normal file
32
sprout/predef/os/vms.hpp
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2015 Bolero MURAKAMI
|
||||
https://github.com/bolero-MURAKAMI/Sprout
|
||||
|
||||
Distributed under the sprout Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
|
||||
=============================================================================*/
|
||||
#ifndef SPROUT_PREDEF_OS_VMS_HPP
|
||||
#define SPROUT_PREDEF_OS_VMS_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/predef/make.hpp>
|
||||
|
||||
#define SPROUT_OS_VMS 0
|
||||
|
||||
#if !defined(SPROUT_PREDEF_DETAIL_OS_DETECTED) && (defined(VMS) || defined(__VMS))
|
||||
# undef SPROUT_OS_VMS
|
||||
# if defined(__VMS_VER)
|
||||
# define SPROUT_OS_VMS SPROUT_PREDEF_MAKE_10_VVRR00PP00(__VMS_VER)
|
||||
# else
|
||||
# define SPROUT_OS_VMS 1
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if SPROUT_OS_VMS
|
||||
# define SPROUT_OS_VMS_AVAILABLE
|
||||
# include <sprout/predef/detail/os_detected.hpp>
|
||||
#endif
|
||||
|
||||
#define SPROUT_OS_VMS_NAME "VMS"
|
||||
|
||||
#endif // #ifndef SPROUT_PREDEF_OS_VMS_HPP
|
28
sprout/predef/os/windows.hpp
Normal file
28
sprout/predef/os/windows.hpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2015 Bolero MURAKAMI
|
||||
https://github.com/bolero-MURAKAMI/Sprout
|
||||
|
||||
Distributed under the sprout Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
|
||||
=============================================================================*/
|
||||
#ifndef SPROUT_PREDEF_OS_WINDOWS_HPP
|
||||
#define SPROUT_PREDEF_OS_WINDOWS_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
|
||||
#define SPROUT_OS_WINDOWS 0
|
||||
|
||||
#if !defined(SPROUT_PREDEF_DETAIL_OS_DETECTED) \
|
||||
&& (defined(_WIN32) || defined(_WIN64) || defined(__WIN32__) || defined(__TOS_WIN__) || defined(__WINDOWS__))
|
||||
# undef SPROUT_OS_WINDOWS
|
||||
# define SPROUT_OS_WINDOWS 1
|
||||
#endif
|
||||
|
||||
#if SPROUT_OS_WINDOWS
|
||||
# define SPROUT_OS_WINDOWS_AVAILABLE
|
||||
# include <sprout/predef/detail/os_detected.hpp>
|
||||
#endif
|
||||
|
||||
#define SPROUT_OS_WINDOWS_NAME "Microsoft Windows"
|
||||
|
||||
#endif // #ifndef SPROUT_PREDEF_OS_WINDOWS_HPP
|
Loading…
Add table
Add a link
Reference in a new issue