equal
deleted
inserted
replaced
|
1 // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 |
|
15 #ifndef SERIALIZER_PLATFORM_H_ |
|
16 #define SERIALIZER_PLATFORM_H_ |
|
17 |
|
18 #ifdef __SYMBIAN32__ |
|
19 #include <e32const.h> |
|
20 #include <e32def.h> |
|
21 |
|
22 #ifdef __KERNEL_MODE__ |
|
23 #include <e32cmn.h> |
|
24 #undef ASSERT(x) |
|
25 #define ASSERT(x) |
|
26 #define SER_IMPORT_C |
|
27 #define SER_EXPORT_C |
|
28 #else |
|
29 #include <e32std.h> |
|
30 #define SER_IMPORT_C IMPORT_C |
|
31 #define SER_EXPORT_C EXPORT_C |
|
32 #endif |
|
33 #else |
|
34 #include <wchar.h> |
|
35 #include <assert.h> |
|
36 |
|
37 #define ASSERT assert |
|
38 typedef void TAny; |
|
39 typedef signed char TInt8; |
|
40 typedef unsigned char TUint8; |
|
41 typedef short int TInt16; |
|
42 typedef unsigned short int TUint16; |
|
43 typedef long int TInt32; |
|
44 typedef unsigned long int TUint32; |
|
45 typedef signed int TInt; |
|
46 typedef long int TBool; |
|
47 typedef unsigned long long TUint64; |
|
48 enum |
|
49 { |
|
50 EFalse = 0, |
|
51 ETrue = 1 |
|
52 }; |
|
53 #define SER_IMPORT_C |
|
54 #define SER_EXPORT_C |
|
55 #define NONSHARABLE_CLASS( x ) class x |
|
56 #endif |
|
57 |
|
58 #endif |