epoc32/include/libc/sys/config.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     1 /*
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 *
    16 */
    17 
    18 
    19 
    20 /**
    21  @file
    22  @publishedAll
    23  @released
    24 */
    25 
    26 #if defined(__H8300__) || defined(__H8500__) || defined (__H8300H__) ||  defined(__W65__)
    27 #define _FLOAT_ARG float
    28 #define __SMALL_BITFIELDS
    29 #define _DOUBLE_IS_32BITS
    30 #define __IEEE_BIG_ENDIAN
    31 /** 
    32 ???  This conditional is true for the h8500 and the w65, defining H8300
    33 in those cases probably isn't the right thing to do.  
    34 */
    35 #define H8300 1
    36 #endif
    37 
    38 #ifdef __W65__
    39 #define _DOUBLE_IS_32BITS
    40 #define __SMALL_BITFIELDS
    41 #define __IEEE_BIG_ENDIAN
    42 #undef INT_MAX
    43 #undef UINT_MAX
    44 #define INT_MAX 32767
    45 #define UINT_MAX 65535
    46 
    47 #endif
    48 
    49 /** 
    50 16 bit integer machines 
    51 */
    52 #if defined(__Z8001__) || defined(__Z8002__) || defined(__H8300__) || defined(__H8500__) || defined(__W65__) || defined (__H8300H__)
    53 #undef INT_MAX
    54 #undef UINT_MAX
    55 #define INT_MAX 32767
    56 #define UINT_MAX 65535
    57 #endif
    58 
    59 #ifdef ___AM29K__
    60 #define _FLOAT_RET double
    61 #endif
    62 
    63 #ifdef __i386__
    64 #ifndef __unix__
    65 /** 
    66 in other words, go32 
    67 */
    68 #define _FLOAT_RET double
    69 #endif
    70 #endif
    71 
    72 #ifdef __m68k__
    73 /** 
    74 This is defined in machine/ieeefp.h; need to check is it redundant here? 
    75 */
    76 #define __IEEE_BIG_ENDIAN
    77 #endif
    78 
    79 #if defined(__EPOC32__)
    80 #ifndef __STDC__
    81 #define __STDC__
    82 #endif	// __STDC__
    83 #define REENTRANT_SYSCALLS_PROVIDED
    84 #define HAVE_GETTIMEOFDAY
    85 #define SIMULATED_SIGNALS
    86 int _execve (const char *path, char * const argv[], char * const envp[]);
    87 int _vfork();
    88 #endif
    89 
    90 #if INT_MAX == 32767
    91 typedef long int __int32_t;
    92 typedef unsigned long int __uint32_t;
    93 #else
    94 typedef int __int32_t;
    95 typedef unsigned int __uint32_t;
    96 #endif
    97