author | sl |
Tue, 10 Jun 2014 14:32:02 +0200 | |
changeset 1 | 260cb5ec6c19 |
permissions | -rw-r--r-- |
sl@0 | 1 |
/* |
sl@0 | 2 |
* Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
sl@0 | 3 |
* All rights reserved. |
sl@0 | 4 |
* This component and the accompanying materials are made available |
sl@0 | 5 |
* under the terms of "Eclipse Public License v1.0" |
sl@0 | 6 |
* which accompanies this distribution, and is available |
sl@0 | 7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
sl@0 | 8 |
* |
sl@0 | 9 |
* Initial Contributors: |
sl@0 | 10 |
* Nokia Corporation - initial contribution. |
sl@0 | 11 |
* |
sl@0 | 12 |
* Contributors: |
sl@0 | 13 |
* |
sl@0 | 14 |
* Description: |
sl@0 | 15 |
* |
sl@0 | 16 |
*/ |
sl@0 | 17 |
|
sl@0 | 18 |
|
sl@0 | 19 |
|
sl@0 | 20 |
/** |
sl@0 | 21 |
@file |
sl@0 | 22 |
@publishedAll |
sl@0 | 23 |
@released |
sl@0 | 24 |
*/ |
sl@0 | 25 |
|
sl@0 | 26 |
#if defined(__H8300__) || defined(__H8500__) || defined (__H8300H__) || defined(__W65__) |
sl@0 | 27 |
#define _FLOAT_ARG float |
sl@0 | 28 |
#define __SMALL_BITFIELDS |
sl@0 | 29 |
#define _DOUBLE_IS_32BITS |
sl@0 | 30 |
#define __IEEE_BIG_ENDIAN |
sl@0 | 31 |
/** |
sl@0 | 32 |
??? This conditional is true for the h8500 and the w65, defining H8300 |
sl@0 | 33 |
in those cases probably isn't the right thing to do. |
sl@0 | 34 |
*/ |
sl@0 | 35 |
#define H8300 1 |
sl@0 | 36 |
#endif |
sl@0 | 37 |
|
sl@0 | 38 |
#ifdef __W65__ |
sl@0 | 39 |
#define _DOUBLE_IS_32BITS |
sl@0 | 40 |
#define __SMALL_BITFIELDS |
sl@0 | 41 |
#define __IEEE_BIG_ENDIAN |
sl@0 | 42 |
#undef INT_MAX |
sl@0 | 43 |
#undef UINT_MAX |
sl@0 | 44 |
#define INT_MAX 32767 |
sl@0 | 45 |
#define UINT_MAX 65535 |
sl@0 | 46 |
|
sl@0 | 47 |
#endif |
sl@0 | 48 |
|
sl@0 | 49 |
/** |
sl@0 | 50 |
16 bit integer machines |
sl@0 | 51 |
*/ |
sl@0 | 52 |
#if defined(__Z8001__) || defined(__Z8002__) || defined(__H8300__) || defined(__H8500__) || defined(__W65__) || defined (__H8300H__) |
sl@0 | 53 |
#undef INT_MAX |
sl@0 | 54 |
#undef UINT_MAX |
sl@0 | 55 |
#define INT_MAX 32767 |
sl@0 | 56 |
#define UINT_MAX 65535 |
sl@0 | 57 |
#endif |
sl@0 | 58 |
|
sl@0 | 59 |
#ifdef ___AM29K__ |
sl@0 | 60 |
#define _FLOAT_RET double |
sl@0 | 61 |
#endif |
sl@0 | 62 |
|
sl@0 | 63 |
#ifdef __i386__ |
sl@0 | 64 |
#ifndef __unix__ |
sl@0 | 65 |
/** |
sl@0 | 66 |
in other words, go32 |
sl@0 | 67 |
*/ |
sl@0 | 68 |
#define _FLOAT_RET double |
sl@0 | 69 |
#endif |
sl@0 | 70 |
#endif |
sl@0 | 71 |
|
sl@0 | 72 |
#ifdef __m68k__ |
sl@0 | 73 |
/** |
sl@0 | 74 |
This is defined in machine/ieeefp.h; need to check is it redundant here? |
sl@0 | 75 |
*/ |
sl@0 | 76 |
#define __IEEE_BIG_ENDIAN |
sl@0 | 77 |
#endif |
sl@0 | 78 |
|
sl@0 | 79 |
#if defined(__EPOC32__) |
sl@0 | 80 |
#ifndef __STDC__ |
sl@0 | 81 |
#define __STDC__ |
sl@0 | 82 |
#endif // __STDC__ |
sl@0 | 83 |
#define REENTRANT_SYSCALLS_PROVIDED |
sl@0 | 84 |
#define HAVE_GETTIMEOFDAY |
sl@0 | 85 |
#define SIMULATED_SIGNALS |
sl@0 | 86 |
int _execve (const char *path, char * const argv[], char * const envp[]); |
sl@0 | 87 |
int _vfork(); |
sl@0 | 88 |
#endif |
sl@0 | 89 |
|
sl@0 | 90 |
#if INT_MAX == 32767 |
sl@0 | 91 |
typedef long int __int32_t; |
sl@0 | 92 |
typedef unsigned long int __uint32_t; |
sl@0 | 93 |
#else |
sl@0 | 94 |
typedef int __int32_t; |
sl@0 | 95 |
typedef unsigned int __uint32_t; |
sl@0 | 96 |
#endif |
sl@0 | 97 |