Ticket #3759: select_platform_config.2.diff

File select_platform_config.2.diff, 3.0 KB (added by Yuriy A. Krasnoschek <aka.rider@…>, 13 years ago)
  • platform/symbian.hpp

     
     1//  (C) Copyright Yuriy Krasnoschok 2009.
     2//  (C) Copyright John Maddock 2001 - 2003.
     3//  (C) Copyright Jens Maurer 2001 - 2003.
     4//  Use, modification and distribution are subject to the
     5//  Boost Software License, Version 1.0. (See accompanying file
     6//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
     7
     8//  See http://www.boost.org for most recent version.
     9
     10//  symbian specific config options:
     11
     12
     13#define BOOST_PLATFORM "Symbian"
     14
     15
     16#define S60_5th_EDITION_FP2 3
     17#define S60_5th_EDITION     2
     18#define S60_N97_SDK         1
     19
     20#define __LITTLE_ENDIAN
     21
     22#if defined(__S60_3X__)
     23// Open C / C++ plugin was introdused in this SDK, earlier versions don't have CRT / STL
     24#  define BOOST_S60_3rd_EDITION_FP2_OR_LATER_SDK
     25// make sure we have __GLIBC_PREREQ if available at all
     26#  include <cstdlib>
     27// boilerplate code:
     28#  define BOOST_HAS_UNISTD_H
     29#  include <boost/config/posix_features.hpp>
     30// S60 SDK defines _POSIX_VERSION as POSIX.1
     31#  ifndef BOOST_HAS_STDINT_H
     32#    define BOOST_HAS_STDINT_H
     33#  endif
     34#  ifndef BOOST_HAS_GETTIMEOFDAY
     35#    define BOOST_HAS_GETTIMEOFDAY
     36#  endif
     37#  ifndef BOOST_HAS_DIRENT_H
     38#    define BOOST_HAS_DIRENT_H
     39#  endif
     40#  ifndef BOOST_HAS_SIGACTION
     41#    define BOOST_HAS_SIGACTION
     42#  endif
     43#  ifndef BOOST_HAS_PTHREADS
     44#    define BOOST_HAS_PTHREADS
     45#  endif
     46#  ifndef BOOST_HAS_NANOSLEEP
     47#    define BOOST_HAS_NANOSLEEP
     48#  endif
     49#  ifndef BOOST_HAS_SCHED_YIELD
     50#    define BOOST_HAS_SCHED_YIELD
     51#  endif
     52#  ifndef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
     53#    define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
     54#  endif
     55#  ifndef BOOST_HAS_LOG1P
     56#    define BOOST_HAS_LOG1P
     57#  endif
     58#  ifndef BOOST_HAS_EXPM1
     59#    define BOOST_HAS_EXPM1
     60#  endif
     61#  ifndef BOOST_POSIX_API
     62#    define BOOST_POSIX_API
     63#  endif
     64#  define BOOST_ASIO_DISABLE_SERIAL_PORT
     65#  define BOOST_DATE_TIME_NO_LOCALE
     66#  define BOOST_NO_STD_WSTRING
     67#  define BOOST_EXCEPTION_DISABLE
     68#  define BOOST_NO_EXCEPTIONS
     69#else // TODO: More platform support e.g. UIQ
     70#  error "Unsuppoted Symbian SDK"
     71#endif
     72
     73#if definde(__WINSCW__) && !defined(BOOST_DISABLE_WIN32)
     74#  define BOOST_DISABLE_WIN32 // winscw defines WIN32 macro
     75#endif
     76
     77
     78
     79
     80
     81
     82
  • select_platform_config.hpp

     
    3333// hp unix:
    3434#  define BOOST_PLATFORM_CONFIG "boost/config/platform/hpux.hpp"
    3535
     36#elif defined(__SYMBIAN32__)
     37// Symbian:
     38#  define BOOST_PLATFORM_CONFIG "boost/config/platform/symbian.hpp"
     39
    3640#elif defined(__CYGWIN__)
    3741// cygwin is not win32:
    3842#  define BOOST_PLATFORM_CONFIG "boost/config/platform/cygwin.hpp"