|
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
|
2 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
3 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
5 |
|
6 #ifndef nspr_symbian_defs_h___ |
|
7 #define nspr_symbian_defs_h___ |
|
8 |
|
9 #include "prthread.h" |
|
10 |
|
11 /* |
|
12 * Internal configuration macros |
|
13 */ |
|
14 |
|
15 #define _PR_SI_SYSNAME "SYMBIAN" |
|
16 #if defined(__WINS__) |
|
17 #define _PR_SI_ARCHITECTURE "i386" |
|
18 #elif defined(__arm__) |
|
19 #define _PR_SI_ARCHITECTURE "arm" |
|
20 #else |
|
21 #error "Unknown CPU architecture" |
|
22 #endif |
|
23 #define PR_DLL_SUFFIX ".dll" |
|
24 |
|
25 #undef HAVE_STACK_GROWING_UP |
|
26 |
|
27 #ifdef DYNAMIC_LIBRARY |
|
28 #define HAVE_DLL |
|
29 #define USE_DLFCN |
|
30 #endif |
|
31 |
|
32 #define _PR_STAT_HAS_ONLY_ST_ATIME |
|
33 #define _PR_NO_LARGE_FILES |
|
34 #define _PR_HAVE_SYSV_SEMAPHORES |
|
35 #define PR_HAVE_SYSV_NAMED_SHARED_MEMORY |
|
36 |
|
37 #ifndef _PR_PTHREADS |
|
38 #error "Classic NSPR is not implemented" |
|
39 #endif |
|
40 |
|
41 extern void _MD_EarlyInit(void); |
|
42 |
|
43 #define _MD_EARLY_INIT _MD_EarlyInit |
|
44 #define _MD_FINAL_INIT _PR_UnixInit |
|
45 #define _MD_INTERVAL_USE_GTOD |
|
46 |
|
47 /* For writev() */ |
|
48 #include <sys/uio.h> |
|
49 |
|
50 #endif /* nspr_symbian_defs_h___ */ |