123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- #ifndef __LIBCPP_SGX
- #define __LIBCPP_SGX
- #ifndef UNREFERENCED_PARAMETER
- # define UNREFERENCED_PARAMETER(P) (P)
- #endif
- #define _LIBCPP_SGX_CONFIG
- #define _LIBCPP_SGX_NO_IOSTREAMS
- #define sgx__cplusplus 201103L
- #include <sys/endian.h>
- #ifdef _LIBCPP_LITTLE_ENDIAN
- #undef _LIBCPP_LITTLE_ENDIAN
- #endif
- #ifdef _LIBCPP_BIG_ENDIAN
- #undef _LIBCPP_BIG_ENDIAN
- #endif
- #if _BYTE_ORDER == _LITTLE_ENDIAN
- # define _LIBCPP_LITTLE_ENDIAN 1
- # define _LIBCPP_BIG_ENDIAN 0
- #else
- # define _LIBCPP_LITTLE_ENDIAN 0
- # define _LIBCPP_BIG_ENDIAN 1
- #endif
- #include <assert.h>
- #if defined(_LIBCPP_ASSERT)
- #undef _LIBCPP_ASSERT
- #endif
- #define _LIBCPP_ASSERT(x, m) (assert(x))
- #if defined(_LIBCPP_NO_RTTI)
- #undef _LIBCPP_NO_RTTI
- #endif
- #if defined(__GNUC__)
- #undef _LIBCPP_USING_DEV_RANDOM
- #define _LIBCPP_USING_SGX_RANDOM
- #undef _LIBCPP_NO_EXCEPTIONS
- #undef _LIBCPP_HAS_NO_TEMPLATE_ALIASES
- #undef _LIBCPP_HAS_NO_CONSTEXPR
- #undef _LIBCPP_HAS_NO_UNICODE_CHARS
- #undef _LIBCPP_HAS_NO_DELETED_FUNCTIONS
- #undef _LIBCPP_HAS_NO_DEFAULTED_FUNCTIONS
- #undef _LIBCPP_HAS_NO_VARIADICS
- #undef _LIBCPP_HAS_NO_ADVANCED_SFINAE
- #undef _LIBCPP_HAS_NO_VARIABLE_TEMPLATES
- #undef _LIBCPP_HAS_NO_RVALUE_REFERENCES
- #undef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
- #undef _LIBCPP_HAS_QUICK_EXIT
- #undef _LIBCPP_HAS_NO_THREAD_UNSAFE_C_FUNCTIONS
- #define _LIBCPP_STD_VER 11
- #define _LIBCPP_HAS_NO_THREADS
- #define _LIBCPP_HAS_NO_STDIN
- #define _LIBCPP_HAS_NO_STDOUT
- #define _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE
- #undef _LIBCPP_SGX_HAS_NO_THREADS
- #undef _LIBCPP_SGX_HAS_NO_ATOMIC
- #define _LIBCPP_SGX_HAS_CXX_ATOMIC
- #endif
- #endif
|