epoc32/include/stdapis/stlportv5/stl/_check_config.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 epoc32/include/stdapis/stlport/stl/_check_config.h@2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
williamr@2
     1
// This file is reserved to site configuration purpose
williamr@2
     2
// and should NEVER be overridden by user
williamr@2
     3
williamr@2
     4
# if defined ( _STLP_NO_OWN_IOSTREAMS )
williamr@2
     5
williamr@2
     6
// User choose not to use SGI iostreams, which means no
williamr@2
     7
// precompiled library will be used and he is free to override
williamr@2
     8
// any STLport configuration flags
williamr@2
     9
williamr@2
    10
# else
williamr@2
    11
williamr@2
    12
// The following will be defined in stl_config.h :
williamr@2
    13
// # define _STLP_OWN_IOSTREAMS 1
williamr@2
    14
# endif
williamr@2
    15
williamr@2
    16
/*
williamr@2
    17
 *  Consistency check : if we use SGI iostreams, we have to use consistent
williamr@2
    18
 *  thread model (single-threaded or multi-threaded) with the compiled library
williamr@2
    19
 *  
williamr@2
    20
 *  Default is multithreaded build. If you want to build and use single-threaded
williamr@2
    21
 *  STLport, please change _STLP_NOTHREADS configuration setting above and rebuild the library
williamr@2
    22
 *
williamr@2
    23
 */
williamr@2
    24
williamr@2
    25
# if defined (_STLP_OWN_IOSTREAMS) \
williamr@2
    26
  && !defined (_STLP_NO_THREADS) && !defined (_REENTRANT)
williamr@2
    27
williamr@2
    28
#  if defined(_MSC_VER) && !defined(__MWERKS__) && !defined (__COMO__) && !defined(_MT)
williamr@2
    29
#   error "Only multi-threaded runtime library may be linked with STLport!"  
williamr@2
    30
#  endif
williamr@2
    31
williamr@2
    32
// boris : you may change that to build non-threadsafe STLport library
williamr@2
    33
#  if defined (__BUILDING_STLPORT) /* || defined (_STLP_DEBUG) */
williamr@2
    34
#   define _REENTRANT 1
williamr@2
    35
#  endif
williamr@2
    36
williamr@2
    37
# endif