2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_OSREFERENCE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the
10 * License may not be used to create, or enable the creation or
11 * redistribution of, unlawful or unlicensed copies of an Apple operating
12 * system, or to circumvent, violate, or enable the circumvention or
13 * violation of, any terms of an Apple operating system software license
16 * Please obtain a copy of the License at
17 * http://www.opensource.apple.com/apsl/ and read it before using this
20 * The Original Code and all software distributed under the License are
21 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
22 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
23 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
25 * Please see the License for the specific language governing rights and
26 * limitations under the License.
28 * @APPLE_LICENSE_OSREFERENCE_HEADER_END@
31 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
40 typedef unsigned int UInt
;
41 typedef signed int SInt
;
43 #ifndef __MACTYPES__ /* CF MacTypes.h */
44 #ifndef __TYPES__ /* guess... Mac Types.h */
46 typedef unsigned char UInt8
;
47 typedef unsigned short UInt16
;
48 typedef unsigned long UInt32
;
49 typedef unsigned long long UInt64
;
50 #if defined(__BIG_ENDIAN__)
51 typedef struct UnsignedWide
{
55 #elif defined(__LITTLE_ENDIAN__)
56 typedef struct UnsignedWide
{
61 #error Unknown endianess.
64 typedef signed char SInt8
;
65 typedef signed short SInt16
;
66 typedef signed long SInt32
;
67 typedef signed long long SInt64
;
68 #if defined(__BIG_ENDIAN__)
73 #elif defined(__LITTLE_ENDIAN__)
79 #error Unknown endianess.
82 typedef SInt32 OSStatus
;
83 typedef UnsignedWide AbsoluteTime
;
84 typedef UInt32 OptionBits
;
86 typedef unsigned char Boolean
;
88 #endif /* __TYPES__ */
89 #endif /* __MACTYPES__ */
91 #if !defined(OS_INLINE)
92 # define OS_INLINE static inline
95 #endif /* _OS_OSTYPES_H */