123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- /*
- * Copyright (c) 2017-2023 zhllxt
- *
- * author : zhllxt
- * email : 37792738@qq.com
- *
- * 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 __ASIO2_EXTERNAL_PREDEF_H__
- #define __ASIO2_EXTERNAL_PREDEF_H__
- #include <asio2/config.hpp>
- #if !defined(ASIO2_HEADER_ONLY) && __has_include(<boost/predef.h>)
- #include <boost/predef.h>
- #ifndef ASIO2_OS_IOS
- #define ASIO2_OS_IOS BOOST_OS_IOS
- #endif
- #ifndef ASIO2_OS_LINUX
- #define ASIO2_OS_LINUX BOOST_OS_LINUX
- #endif
- #ifndef ASIO2_OS_MACOS
- #define ASIO2_OS_MACOS BOOST_OS_MACOS
- #endif
- #ifndef ASIO2_OS_UNIX
- #define ASIO2_OS_UNIX BOOST_OS_UNIX
- #endif
- #ifndef ASIO2_OS_WINDOWS
- #define ASIO2_OS_WINDOWS BOOST_OS_WINDOWS
- #endif
- #ifndef ASIO2_ENDIAN_BIG_BYTE
- #define ASIO2_ENDIAN_BIG_BYTE BOOST_ENDIAN_BIG_BYTE
- #endif
- #ifndef ASIO2_ENDIAN_BIG_WORD
- #define ASIO2_ENDIAN_BIG_WORD BOOST_ENDIAN_BIG_WORD
- #endif
- #ifndef ASIO2_ENDIAN_LITTLE_BYTE
- #define ASIO2_ENDIAN_LITTLE_BYTE BOOST_ENDIAN_LITTLE_BYTE
- #endif
- #ifndef ASIO2_ENDIAN_LITTLE_WORD
- #define ASIO2_ENDIAN_LITTLE_WORD BOOST_ENDIAN_LITTLE_WORD
- #endif
- #ifndef ASIO2_ARCH_WORD_BITS_64
- #define ASIO2_ARCH_WORD_BITS_64 BOOST_ARCH_WORD_BITS_64
- #endif
- #ifndef ASIO2_ARCH_WORD_BITS_32
- #define ASIO2_ARCH_WORD_BITS_32 BOOST_ARCH_WORD_BITS_32
- #endif
- #ifndef ASIO2_ARCH_WORD_BITS_16
- #define ASIO2_ARCH_WORD_BITS_16 BOOST_ARCH_WORD_BITS_16
- #endif
- #ifndef ASIO2_ARCH_WORD_BITS
- #define ASIO2_ARCH_WORD_BITS BOOST_ARCH_WORD_BITS
- #endif
- #else
- #include <asio2/bho/predef.h>
- #ifndef ASIO2_OS_IOS
- #define ASIO2_OS_IOS BHO_OS_IOS
- #endif
- #ifndef ASIO2_OS_LINUX
- #define ASIO2_OS_LINUX BHO_OS_LINUX
- #endif
- #ifndef ASIO2_OS_MACOS
- #define ASIO2_OS_MACOS BHO_OS_MACOS
- #endif
- #ifndef ASIO2_OS_UNIX
- #define ASIO2_OS_UNIX BHO_OS_UNIX
- #endif
- #ifndef ASIO2_OS_WINDOWS
- #define ASIO2_OS_WINDOWS BHO_OS_WINDOWS
- #endif
- #ifndef ASIO2_ENDIAN_BIG_BYTE
- #define ASIO2_ENDIAN_BIG_BYTE BHO_ENDIAN_BIG_BYTE
- #endif
- #ifndef ASIO2_ENDIAN_BIG_WORD
- #define ASIO2_ENDIAN_BIG_WORD BHO_ENDIAN_BIG_WORD
- #endif
- #ifndef ASIO2_ENDIAN_LITTLE_BYTE
- #define ASIO2_ENDIAN_LITTLE_BYTE BHO_ENDIAN_LITTLE_BYTE
- #endif
- #ifndef ASIO2_ENDIAN_LITTLE_WORD
- #define ASIO2_ENDIAN_LITTLE_WORD BHO_ENDIAN_LITTLE_WORD
- #endif
- #ifndef ASIO2_ARCH_WORD_BITS_64
- #define ASIO2_ARCH_WORD_BITS_64 BHO_ARCH_WORD_BITS_64
- #endif
- #ifndef ASIO2_ARCH_WORD_BITS_32
- #define ASIO2_ARCH_WORD_BITS_32 BHO_ARCH_WORD_BITS_32
- #endif
- #ifndef ASIO2_ARCH_WORD_BITS_16
- #define ASIO2_ARCH_WORD_BITS_16 BHO_ARCH_WORD_BITS_16
- #endif
- #ifndef ASIO2_ARCH_WORD_BITS
- #define ASIO2_ARCH_WORD_BITS BHO_ARCH_WORD_BITS
- #endif
- #endif
- #endif
|