]> git.saurik.com Git - apple/xnu.git/blame - osfmk/libsa/i386/va_list.h
xnu-792.6.56.tar.gz
[apple/xnu.git] / osfmk / libsa / i386 / va_list.h
CommitLineData
1c79356b
A
1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
ff6e181a
A
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. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
1c79356b 12 *
ff6e181a
A
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
1c79356b
A
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
ff6e181a
A
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
1c79356b
A
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23/*
24 * @OSF_COPYRIGHT@
25 *
26 */
27/*
28 * HISTORY
29 *
30 * Revision 1.2 1998/09/30 21:21:00 wsanchez
31 * Merged in IntelMerge1 (mburg: Intel support)
32 *
33 * Revision 1.1.2.1 1998/09/30 18:19:50 mburg
34 * Changes for Intel port
35 *
36 * Revision 1.1.1.1 1998/03/07 02:25:36 wsanchez
37 * Import of OSF Mach kernel (~mburg)
38 *
39 * Revision 1.1.2.1 1996/09/17 16:56:30 bruel
40 * created from standalone mach servers
41 * [1996/09/17 16:18:09 bruel]
42 *
43 * $EndLog$
44 */
45
46#ifndef _MACHINE_VALIST_H
47#define _MACHINE_VALIST_H
48
49/*
50 * Four possible situations:
51 * - We are being included by {var,std}args.h (or anyone) before stdio.h.
52 * define real type.
53 *
54 * - We are being included by stdio.h before {var,std}args.h.
55 * define hidden type for prototypes in stdio, don't pollute namespace.
56 *
57 * - We are being included by {var,std}args.h after stdio.h.
58 * define real type to match hidden type. no longer use hidden type.
59 *
60 * - We are being included again after defining the real va_list.
61 * do nothing.
62 *
63 */
64
65#if !defined(_HIDDEN_VA_LIST) && !defined(_VA_LIST)
66#define _VA_LIST
67typedef char *va_list;
68
69#elif defined(_HIDDEN_VA_LIST) && !defined(_VA_LIST)
70#define _VA_LIST
71typedef char *__va_list;
72
73#elif defined(_HIDDEN_VA_LIST) && defined(_VA_LIST)
74#undef _HIDDEN_VA_LIST
75typedef __va_list va_list;
76
77#endif
78
79#endif /* _MACHINE_VALIST_H */
80