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