epoc32/include/libc/sys/config.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 0 061f57f2323e
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
/*
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@2
     5
* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
williamr@2
     6
* which accompanies this distribution, and is available
williamr@2
     7
* at the URL "http://www.symbianfoundation.org/legal/licencesv10.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
williamr@2
    22
williamr@2
    23
/**
williamr@2
    24
 @file
williamr@2
    25
 @publishedAll
williamr@2
    26
 @released
williamr@2
    27
*/
williamr@2
    28
williamr@2
    29
#if defined(__H8300__) || defined(__H8500__) || defined (__H8300H__) ||  defined(__W65__)
williamr@2
    30
#define _FLOAT_ARG float
williamr@2
    31
#define __SMALL_BITFIELDS
williamr@2
    32
#define _DOUBLE_IS_32BITS
williamr@2
    33
#define __IEEE_BIG_ENDIAN
williamr@2
    34
/** 
williamr@2
    35
???  This conditional is true for the h8500 and the w65, defining H8300
williamr@2
    36
in those cases probably isn't the right thing to do.  
williamr@2
    37
*/
williamr@2
    38
#define H8300 1
williamr@2
    39
#endif
williamr@2
    40
williamr@2
    41
#ifdef __W65__
williamr@2
    42
#define _DOUBLE_IS_32BITS
williamr@2
    43
#define __SMALL_BITFIELDS
williamr@2
    44
#define __IEEE_BIG_ENDIAN
williamr@2
    45
#undef INT_MAX
williamr@2
    46
#undef UINT_MAX
williamr@2
    47
#define INT_MAX 32767
williamr@2
    48
#define UINT_MAX 65535
williamr@2
    49
williamr@2
    50
#endif
williamr@2
    51
williamr@2
    52
/** 
williamr@2
    53
16 bit integer machines 
williamr@2
    54
*/
williamr@2
    55
#if defined(__Z8001__) || defined(__Z8002__) || defined(__H8300__) || defined(__H8500__) || defined(__W65__) || defined (__H8300H__)
williamr@2
    56
#undef INT_MAX
williamr@2
    57
#undef UINT_MAX
williamr@2
    58
#define INT_MAX 32767
williamr@2
    59
#define UINT_MAX 65535
williamr@2
    60
#endif
williamr@2
    61
williamr@2
    62
#ifdef ___AM29K__
williamr@2
    63
#define _FLOAT_RET double
williamr@2
    64
#endif
williamr@2
    65
williamr@2
    66
#ifdef __i386__
williamr@2
    67
#ifndef __unix__
williamr@2
    68
/** 
williamr@2
    69
in other words, go32 
williamr@2
    70
*/
williamr@2
    71
#define _FLOAT_RET double
williamr@2
    72
#endif
williamr@2
    73
#endif
williamr@2
    74
williamr@2
    75
#ifdef __m68k__
williamr@2
    76
/** 
williamr@2
    77
This is defined in machine/ieeefp.h; need to check is it redundant here? 
williamr@2
    78
*/
williamr@2
    79
#define __IEEE_BIG_ENDIAN
williamr@2
    80
#endif
williamr@2
    81
williamr@2
    82
#if defined(__EPOC32__)
williamr@2
    83
#ifndef __STDC__
williamr@2
    84
#define __STDC__
williamr@2
    85
#endif	// __STDC__
williamr@2
    86
#define REENTRANT_SYSCALLS_PROVIDED
williamr@2
    87
#define HAVE_GETTIMEOFDAY
williamr@2
    88
#define SIMULATED_SIGNALS
williamr@2
    89
int _execve (const char *path, char * const argv[], char * const envp[]);
williamr@2
    90
int _vfork();
williamr@2
    91
#endif
williamr@2
    92
williamr@2
    93
#if INT_MAX == 32767
williamr@2
    94
typedef long int __int32_t;
williamr@2
    95
typedef unsigned long int __uint32_t;
williamr@2
    96
#else
williamr@2
    97
typedef int __int32_t;
williamr@2
    98
typedef unsigned int __uint32_t;
williamr@2
    99
#endif