diff -r 666f914201fb -r 2fe1408b6811 epoc32/include/libc/sys/config.h --- a/epoc32/include/libc/sys/config.h Tue Nov 24 13:55:44 2009 +0000 +++ b/epoc32/include/libc/sys/config.h Tue Mar 16 16:12:26 2010 +0000 @@ -1,1 +1,99 @@ -config.h +/* +* Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* 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 +* which accompanies this distribution, and is available +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + + + + + +/** + @file + @publishedAll + @released +*/ + +#if defined(__H8300__) || defined(__H8500__) || defined (__H8300H__) || defined(__W65__) +#define _FLOAT_ARG float +#define __SMALL_BITFIELDS +#define _DOUBLE_IS_32BITS +#define __IEEE_BIG_ENDIAN +/** +??? This conditional is true for the h8500 and the w65, defining H8300 +in those cases probably isn't the right thing to do. +*/ +#define H8300 1 +#endif + +#ifdef __W65__ +#define _DOUBLE_IS_32BITS +#define __SMALL_BITFIELDS +#define __IEEE_BIG_ENDIAN +#undef INT_MAX +#undef UINT_MAX +#define INT_MAX 32767 +#define UINT_MAX 65535 + +#endif + +/** +16 bit integer machines +*/ +#if defined(__Z8001__) || defined(__Z8002__) || defined(__H8300__) || defined(__H8500__) || defined(__W65__) || defined (__H8300H__) +#undef INT_MAX +#undef UINT_MAX +#define INT_MAX 32767 +#define UINT_MAX 65535 +#endif + +#ifdef ___AM29K__ +#define _FLOAT_RET double +#endif + +#ifdef __i386__ +#ifndef __unix__ +/** +in other words, go32 +*/ +#define _FLOAT_RET double +#endif +#endif + +#ifdef __m68k__ +/** +This is defined in machine/ieeefp.h; need to check is it redundant here? +*/ +#define __IEEE_BIG_ENDIAN +#endif + +#if defined(__EPOC32__) +#ifndef __STDC__ +#define __STDC__ +#endif // __STDC__ +#define REENTRANT_SYSCALLS_PROVIDED +#define HAVE_GETTIMEOFDAY +#define SIMULATED_SIGNALS +int _execve (const char *path, char * const argv[], char * const envp[]); +int _vfork(); +#endif + +#if INT_MAX == 32767 +typedef long int __int32_t; +typedef unsigned long int __uint32_t; +#else +typedef int __int32_t; +typedef unsigned int __uint32_t; +#endif