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