epoc32/include/stdapis/stlport/cfloat
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
equal deleted inserted replaced
1:666f914201fb 2:2fe1408b6811
     1 cfloat
     1 /*
       
     2  * © Portions copyright (c) 2006-2007 Nokia Corporation.  All rights reserved.
       
     3  *
       
     4  * Copyright (c) 1999 
       
     5  * Boris Fomitchev
       
     6  *
       
     7  * This material is provided "as is", with absolutely no warranty expressed
       
     8  * or implied. Any use is at your own risk.
       
     9  *
       
    10  * Permission to use or copy this software for any purpose is hereby granted 
       
    11  * without fee, provided the above notices are retained on all copies.
       
    12  * Permission to modify the code and to distribute modified code is granted,
       
    13  * provided the above notices are retained, and a notice that the code was
       
    14  * modified is included with the above copyright notice.
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef _STLP_CFLOAT
       
    19 # define _STLP_CFLOAT
       
    20 
       
    21 # ifndef _STLP_OUTERMOST_HEADER_ID
       
    22 #  define _STLP_OUTERMOST_HEADER_ID 0x106
       
    23 #  include <stl/_prolog.h>
       
    24 # endif
       
    25 
       
    26 // Borland defines some implementation constants in std:: namespace,
       
    27 // we do not want to import them.
       
    28 #if defined (__SYMBIAN32__) || defined (__WINS__)
       
    29 # include <math.h>
       
    30 # include <float.h>
       
    31 
       
    32 #define _DBL_RADIX      2                       /* exponent radix */
       
    33 #define _DBL_ROUNDS     1                       /* addition rounding: near */
       
    34 #define FLT_GUARD       0
       
    35 #define FLT_NORMALIZE   0
       
    36 
       
    37 #else
       
    38 # if defined  (_STLP_USE_NEW_C_HEADERS) && ! defined (__BORLANDC__)
       
    39 #  include _STLP_NATIVE_CPP_C_HEADER(cfloat)
       
    40 # else
       
    41 #  include _STLP_NATIVE_C_HEADER(float.h)
       
    42 # endif
       
    43 #endif
       
    44 
       
    45 # if (_STLP_OUTERMOST_HEADER_ID == 0x106 )
       
    46 #  include <stl/_epilog.h>
       
    47 #  undef _STLP_OUTERMOST_HEADER_ID
       
    48 # endif
       
    49 
       
    50 #endif /* _STLP_CFLOAT */
       
    51 
       
    52 // Local Variables:
       
    53 // mode:C++
       
    54 // End: