|
1 /* |
|
2 * Copyright (c) 2004-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 "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __SYMBIAN_TYPES_H__ |
|
20 #define __SYMBIAN_TYPES_H__ |
|
21 |
|
22 /** |
|
23 @file |
|
24 @internalComponent |
|
25 */ |
|
26 |
|
27 // This file allows a PC-based program to be built in isolation from the emulator run-time |
|
28 |
|
29 // The basic types are included |
|
30 |
|
31 #ifdef __TOOLS2_WINDOWS__ |
|
32 #ifndef __int64 |
|
33 # define __int64 long long |
|
34 #endif |
|
35 #endif // __TOOLS2_WINDOWS__ |
|
36 |
|
37 #ifdef _WIN32 |
|
38 typedef __int64 TInt64; |
|
39 typedef unsigned __int64 TUint64; |
|
40 #endif |
|
41 |
|
42 #ifdef __TOOLS2_LINUX__ |
|
43 #include <stdint.h> |
|
44 typedef unsigned long long TUint64; |
|
45 typedef int64_t TInt64; |
|
46 #endif |
|
47 |
|
48 typedef long int TInt32; |
|
49 typedef unsigned long int TUint32; |
|
50 typedef short int TInt16; |
|
51 typedef signed char TInt8; |
|
52 typedef unsigned short int TUint16; |
|
53 typedef unsigned char TUint8; |
|
54 typedef bool TBool; |
|
55 |
|
56 typedef TUint16 TCRC; |
|
57 typedef int TInt; |
|
58 |
|
59 #endif /* __SYMBIAN_TYPES_H__ */ |
|
60 |
|
61 #ifdef UNICODE |
|
62 #define STRING std::wstring |
|
63 #else |
|
64 #define STRING std::string |
|
65 #endif // _UNICODE |