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