1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/genericopenlibs/cstdlib/LINCSYS/CONFIG.H Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,97 @@
1.4 +/*
1.5 +* Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +*
1.19 +*/
1.20 +
1.21 +
1.22 +
1.23 +/**
1.24 + @file
1.25 + @publishedAll
1.26 + @released
1.27 +*/
1.28 +
1.29 +#if defined(__H8300__) || defined(__H8500__) || defined (__H8300H__) || defined(__W65__)
1.30 +#define _FLOAT_ARG float
1.31 +#define __SMALL_BITFIELDS
1.32 +#define _DOUBLE_IS_32BITS
1.33 +#define __IEEE_BIG_ENDIAN
1.34 +/**
1.35 +??? This conditional is true for the h8500 and the w65, defining H8300
1.36 +in those cases probably isn't the right thing to do.
1.37 +*/
1.38 +#define H8300 1
1.39 +#endif
1.40 +
1.41 +#ifdef __W65__
1.42 +#define _DOUBLE_IS_32BITS
1.43 +#define __SMALL_BITFIELDS
1.44 +#define __IEEE_BIG_ENDIAN
1.45 +#undef INT_MAX
1.46 +#undef UINT_MAX
1.47 +#define INT_MAX 32767
1.48 +#define UINT_MAX 65535
1.49 +
1.50 +#endif
1.51 +
1.52 +/**
1.53 +16 bit integer machines
1.54 +*/
1.55 +#if defined(__Z8001__) || defined(__Z8002__) || defined(__H8300__) || defined(__H8500__) || defined(__W65__) || defined (__H8300H__)
1.56 +#undef INT_MAX
1.57 +#undef UINT_MAX
1.58 +#define INT_MAX 32767
1.59 +#define UINT_MAX 65535
1.60 +#endif
1.61 +
1.62 +#ifdef ___AM29K__
1.63 +#define _FLOAT_RET double
1.64 +#endif
1.65 +
1.66 +#ifdef __i386__
1.67 +#ifndef __unix__
1.68 +/**
1.69 +in other words, go32
1.70 +*/
1.71 +#define _FLOAT_RET double
1.72 +#endif
1.73 +#endif
1.74 +
1.75 +#ifdef __m68k__
1.76 +/**
1.77 +This is defined in machine/ieeefp.h; need to check is it redundant here?
1.78 +*/
1.79 +#define __IEEE_BIG_ENDIAN
1.80 +#endif
1.81 +
1.82 +#if defined(__EPOC32__)
1.83 +#ifndef __STDC__
1.84 +#define __STDC__
1.85 +#endif // __STDC__
1.86 +#define REENTRANT_SYSCALLS_PROVIDED
1.87 +#define HAVE_GETTIMEOFDAY
1.88 +#define SIMULATED_SIGNALS
1.89 +int _execve (const char *path, char * const argv[], char * const envp[]);
1.90 +int _vfork();
1.91 +#endif
1.92 +
1.93 +#if INT_MAX == 32767
1.94 +typedef long int __int32_t;
1.95 +typedef unsigned long int __uint32_t;
1.96 +#else
1.97 +typedef int __int32_t;
1.98 +typedef unsigned int __uint32_t;
1.99 +#endif
1.100 +