/usr/include/sys/va_list.h


    1 /*
    2  * Copyright (c) 1996-1999 by Sun Microsystems, Inc.
    3  * All rights reserved.
    4  */
    5 
    6 #ifndef	_SYS_VA_LIST_H
    7 #define	_SYS_VA_LIST_H
    8 
    9 #pragma ident	"@(#)va_list.h	1.12	99/05/04 SMI"
   10 
   11 /*
   12  * This file is system implementation and generally should not be
   13  * included directly by applications.  It serves to resolve the
   14  * conflict in ANSI-C where the prototypes for v*printf are required
   15  * to be in <stdio.h> but only applications which reference these
   16  * routines are required to have previously included <stdarg.h>.
   17  * It also provides a clean way to allow either the ANSI <stdarg.h>
   18  * or the historical <varargs.h> to be used.
   19  */
   20 
   21 #ifdef	__cplusplus
   22 extern "C" {
   23 #endif
   24 
   25 #if defined(__STDC__) && !defined(__ia64)
   26 typedef void *__va_list;
   27 #else
   28 typedef char *__va_list;
   29 #endif
   30 
   31 #ifdef	__cplusplus
   32 }
   33 #endif
   34 
   35 #endif	/* _SYS_VA_LIST_H */