1.1 --- a/epoc32/include/libc/sys/config.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/libc/sys/config.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,99 @@
1.4 -config.h
1.5 +/*
1.6 +* Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
1.7 +* All rights reserved.
1.8 +* This component and the accompanying materials are made available
1.9 +* 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
1.10 +* which accompanies this distribution, and is available
1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.12 +*
1.13 +* Initial Contributors:
1.14 +* Nokia Corporation - initial contribution.
1.15 +*
1.16 +* Contributors:
1.17 +*
1.18 +* Description:
1.19 +*
1.20 +*/
1.21 +
1.22 +
1.23 +
1.24 +
1.25 +
1.26 +
1.27 +/**
1.28 + @file
1.29 + @publishedAll
1.30 + @released
1.31 +*/
1.32 +
1.33 +#if defined(__H8300__) || defined(__H8500__) || defined (__H8300H__) || defined(__W65__)
1.34 +#define _FLOAT_ARG float
1.35 +#define __SMALL_BITFIELDS
1.36 +#define _DOUBLE_IS_32BITS
1.37 +#define __IEEE_BIG_ENDIAN
1.38 +/**
1.39 +??? This conditional is true for the h8500 and the w65, defining H8300
1.40 +in those cases probably isn't the right thing to do.
1.41 +*/
1.42 +#define H8300 1
1.43 +#endif
1.44 +
1.45 +#ifdef __W65__
1.46 +#define _DOUBLE_IS_32BITS
1.47 +#define __SMALL_BITFIELDS
1.48 +#define __IEEE_BIG_ENDIAN
1.49 +#undef INT_MAX
1.50 +#undef UINT_MAX
1.51 +#define INT_MAX 32767
1.52 +#define UINT_MAX 65535
1.53 +
1.54 +#endif
1.55 +
1.56 +/**
1.57 +16 bit integer machines
1.58 +*/
1.59 +#if defined(__Z8001__) || defined(__Z8002__) || defined(__H8300__) || defined(__H8500__) || defined(__W65__) || defined (__H8300H__)
1.60 +#undef INT_MAX
1.61 +#undef UINT_MAX
1.62 +#define INT_MAX 32767
1.63 +#define UINT_MAX 65535
1.64 +#endif
1.65 +
1.66 +#ifdef ___AM29K__
1.67 +#define _FLOAT_RET double
1.68 +#endif
1.69 +
1.70 +#ifdef __i386__
1.71 +#ifndef __unix__
1.72 +/**
1.73 +in other words, go32
1.74 +*/
1.75 +#define _FLOAT_RET double
1.76 +#endif
1.77 +#endif
1.78 +
1.79 +#ifdef __m68k__
1.80 +/**
1.81 +This is defined in machine/ieeefp.h; need to check is it redundant here?
1.82 +*/
1.83 +#define __IEEE_BIG_ENDIAN
1.84 +#endif
1.85 +
1.86 +#if defined(__EPOC32__)
1.87 +#ifndef __STDC__
1.88 +#define __STDC__
1.89 +#endif // __STDC__
1.90 +#define REENTRANT_SYSCALLS_PROVIDED
1.91 +#define HAVE_GETTIMEOFDAY
1.92 +#define SIMULATED_SIGNALS
1.93 +int _execve (const char *path, char * const argv[], char * const envp[]);
1.94 +int _vfork();
1.95 +#endif
1.96 +
1.97 +#if INT_MAX == 32767
1.98 +typedef long int __int32_t;
1.99 +typedef unsigned long int __uint32_t;
1.100 +#else
1.101 +typedef int __int32_t;
1.102 +typedef unsigned int __uint32_t;
1.103 +#endif