sl@0: /* sl@0: * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: /** sl@0: @file sl@0: @publishedAll sl@0: @released sl@0: */ sl@0: sl@0: #if defined(__H8300__) || defined(__H8500__) || defined (__H8300H__) || defined(__W65__) sl@0: #define _FLOAT_ARG float sl@0: #define __SMALL_BITFIELDS sl@0: #define _DOUBLE_IS_32BITS sl@0: #define __IEEE_BIG_ENDIAN sl@0: /** sl@0: ??? This conditional is true for the h8500 and the w65, defining H8300 sl@0: in those cases probably isn't the right thing to do. sl@0: */ sl@0: #define H8300 1 sl@0: #endif sl@0: sl@0: #ifdef __W65__ sl@0: #define _DOUBLE_IS_32BITS sl@0: #define __SMALL_BITFIELDS sl@0: #define __IEEE_BIG_ENDIAN sl@0: #undef INT_MAX sl@0: #undef UINT_MAX sl@0: #define INT_MAX 32767 sl@0: #define UINT_MAX 65535 sl@0: sl@0: #endif sl@0: sl@0: /** sl@0: 16 bit integer machines sl@0: */ sl@0: #if defined(__Z8001__) || defined(__Z8002__) || defined(__H8300__) || defined(__H8500__) || defined(__W65__) || defined (__H8300H__) sl@0: #undef INT_MAX sl@0: #undef UINT_MAX sl@0: #define INT_MAX 32767 sl@0: #define UINT_MAX 65535 sl@0: #endif sl@0: sl@0: #ifdef ___AM29K__ sl@0: #define _FLOAT_RET double sl@0: #endif sl@0: sl@0: #ifdef __i386__ sl@0: #ifndef __unix__ sl@0: /** sl@0: in other words, go32 sl@0: */ sl@0: #define _FLOAT_RET double sl@0: #endif sl@0: #endif sl@0: sl@0: #ifdef __m68k__ sl@0: /** sl@0: This is defined in machine/ieeefp.h; need to check is it redundant here? sl@0: */ sl@0: #define __IEEE_BIG_ENDIAN sl@0: #endif sl@0: sl@0: #if defined(__EPOC32__) sl@0: #ifndef __STDC__ sl@0: #define __STDC__ sl@0: #endif // __STDC__ sl@0: #define REENTRANT_SYSCALLS_PROVIDED sl@0: #define HAVE_GETTIMEOFDAY sl@0: #define SIMULATED_SIGNALS sl@0: int _execve (const char *path, char * const argv[], char * const envp[]); sl@0: int _vfork(); sl@0: #endif sl@0: sl@0: #if INT_MAX == 32767 sl@0: typedef long int __int32_t; sl@0: typedef unsigned long int __uint32_t; sl@0: #else sl@0: typedef int __int32_t; sl@0: typedef unsigned int __uint32_t; sl@0: #endif sl@0: