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