Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:30:07

0001 //  (C) Copyright Yuriy Krasnoschek 2009. 
0002 //  (C) Copyright John Maddock 2001 - 2003. 
0003 //  (C) Copyright Jens Maurer 2001 - 2003. 
0004 //  Use, modification and distribution are subject to the 
0005 //  Boost Software License, Version 1.0. (See accompanying file 
0006 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0007 
0008 //  See http://www.boost.org for most recent version.
0009 
0010 //  symbian specific config options:
0011 
0012 
0013 #define BOOST_PLATFORM "Symbian"
0014 #define BOOST_SYMBIAN 1
0015 
0016 
0017 #if defined(__S60_3X__)
0018 // Open C / C++ plugin was introdused in this SDK, earlier versions don't have CRT / STL
0019 #  define BOOST_S60_3rd_EDITION_FP2_OR_LATER_SDK
0020 // make sure we have __GLIBC_PREREQ if available at all
0021 #ifdef __cplusplus
0022 #include <cstdlib>
0023 #else
0024 #include <stdlib.h>
0025 #endif// boilerplate code:
0026 #  define BOOST_HAS_UNISTD_H
0027 #  include <boost/config/detail/posix_features.hpp>
0028 // S60 SDK defines _POSIX_VERSION as POSIX.1
0029 #  ifndef BOOST_HAS_STDINT_H
0030 #    define BOOST_HAS_STDINT_H
0031 #  endif
0032 #  ifndef BOOST_HAS_GETTIMEOFDAY
0033 #    define BOOST_HAS_GETTIMEOFDAY
0034 #  endif
0035 #  ifndef BOOST_HAS_DIRENT_H
0036 #    define BOOST_HAS_DIRENT_H
0037 #  endif
0038 #  ifndef BOOST_HAS_SIGACTION
0039 #    define BOOST_HAS_SIGACTION
0040 #  endif
0041 #  ifndef BOOST_HAS_PTHREADS
0042 #    define BOOST_HAS_PTHREADS
0043 #  endif
0044 #  ifndef BOOST_HAS_NANOSLEEP
0045 #    define BOOST_HAS_NANOSLEEP
0046 #  endif
0047 #  ifndef BOOST_HAS_SCHED_YIELD
0048 #    define BOOST_HAS_SCHED_YIELD
0049 #  endif
0050 #  ifndef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
0051 #    define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
0052 #  endif
0053 #  ifndef BOOST_HAS_LOG1P
0054 #    define BOOST_HAS_LOG1P
0055 #  endif
0056 #  ifndef BOOST_HAS_EXPM1
0057 #    define BOOST_HAS_EXPM1
0058 #  endif
0059 #  ifndef BOOST_POSIX_API
0060 #    define BOOST_POSIX_API
0061 #  endif
0062 // endianess support
0063 #  include <sys/endian.h>
0064 // Symbian SDK provides _BYTE_ORDER instead of __BYTE_ORDER
0065 #  ifndef __LITTLE_ENDIAN
0066 #    ifdef _LITTLE_ENDIAN
0067 #      define __LITTLE_ENDIAN _LITTLE_ENDIAN
0068 #    else
0069 #      define __LITTLE_ENDIAN 1234
0070 #    endif
0071 #  endif
0072 #  ifndef __BIG_ENDIAN
0073 #    ifdef _BIG_ENDIAN
0074 #      define __BIG_ENDIAN _BIG_ENDIAN
0075 #    else
0076 #      define __BIG_ENDIAN 4321
0077 #    endif
0078 #  endif
0079 #  ifndef __BYTE_ORDER
0080 #    define __BYTE_ORDER __LITTLE_ENDIAN // Symbian is LE
0081 #  endif
0082 // Known limitations
0083 #  define BOOST_ASIO_DISABLE_SERIAL_PORT
0084 #  define BOOST_DATE_TIME_NO_LOCALE
0085 #  define BOOST_NO_STD_WSTRING
0086 #  define BOOST_EXCEPTION_DISABLE
0087 #  define BOOST_NO_EXCEPTIONS
0088 
0089 #else // TODO: More platform support e.g. UIQ
0090 #  error "Unsuppoted Symbian SDK"
0091 #endif
0092 
0093 #if defined(__WINSCW__) && !defined(BOOST_DISABLE_WIN32)
0094 #  define BOOST_DISABLE_WIN32 // winscw defines WIN32 macro
0095 #endif
0096 
0097