]>
git.saurik.com Git - apple/security.git/blob - cdsa/cdsa_utilities/utility_config.h
2 * Copyright (c) 2000-2001 Apple Computer, Inc. All Rights Reserved.
4 * The contents of this file constitute Original Code as defined in and are
5 * subject to the Apple Public Source License Version 1.2 (the 'License').
6 * You may not use this file except in compliance with the License. Please obtain
7 * a copy of the License at http://www.apple.com/publicsource and read it before
10 * This Original Code and all software distributed under the License are
11 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS
12 * OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT
13 * LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14 * PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the
15 * specific language governing rights and limitations under the License.
20 // utility_config.h - common configuration for the utility libraries
22 #ifndef _H_UTILITY_CONFIG
23 #define _H_UTILITY_CONFIG
25 // include public configuration
26 #include <Security/cssmconfig.h>
29 // Headers of varying provenance.
30 // We include these here because they're ubiquitous, and it's too much of a pain
31 // to replicate this logic everywhere.
33 #if defined(TARGET_OS_MAC)
34 #include <CoreServices/../Frameworks/CarbonCore.framework/Headers/MacTypes.h>
35 #elif defined(TARGET_OS_UNIX)
36 # include <sys/types.h>
42 // Decide what io apis we'll be using
44 #define _USE_IO_POSIX 0
45 #define _USE_IO_MACOS 1
48 # if TARGET_API_MAC_OS8
49 # define _USE_IO _USE_IO_MACOS
51 # define _USE_IO _USE_IO_POSIX
56 // Decide what threading support we'll be using
58 #define _USE_NO_THREADS 0
59 #define _USE_PTHREADS 1
60 #define _USE_MPTHREADS 2
63 #if defined(_POSIX_THREADS)
64 # define _USE_THREADS _USE_PTHREADS
66 #if !defined(_USE_THREADS)
67 # define _USE_THREADS _USE_NO_THREADS
72 // Compatibility switches
74 #define COMPAT_OSX_10_0 1 /* be compatible with MacOS 10.0.x formats & features */
78 // Bugs, buglets, and special compiler features
80 #define bug_private private
81 #define bug_protected protected
82 #define bug_const const
92 # if !defined(__attribute__)
93 # define __attribute__(whatever) /* don't use for non-gcc compilers */
98 ld: for architecture ppc
99 ld: common symbols not allowed with MH_DYLIB output format
100 /Network/Servers/fivestar/homes/delaware/jhurley/AppleDev/insight/build/intermediates/KeychainLib.build/Objects/Sources/KeychainLib/KCSleep.o definition of common __7KCSleep.mKCSleepRec (size 12)
102 #define BUG_COMMON_SYMBOLS
104 // Make sure that namespace Security exists
107 } // end namespace Security
109 // Automatically use the Security namespace for everything that includes the utility_config header.
110 using namespace Security
;
112 // Make sure that namespace std exists
115 } // end namespace std
117 // Automatically use the std namespace for everything that includes the utility_config header.
120 #endif //_H_UTILITY_CONFIG