va.h

00001 /*
00002  * Copyright (c) 2005-2012 by KoanLogic s.r.l. <http://www.koanlogic.com>
00003  * All rights reserved.
00004  *
00005  * This file is part of KLone, and as such it is subject to the license stated
00006  * in the LICENSE file which you have received as part of this distribution.
00007  *
00008  * $Id: va.h,v 1.2 2008/10/03 16:03:04 tho Exp $
00009  */
00010 
00011 #ifndef _KLONE_VA_H_
00012 #define _KLONE_VA_H_
00013 
00014 #include "klone_conf.h"
00015 #include <u/libu.h>
00016 #include <stdarg.h>
00017 
00018 /* provide some suitable method for performing C99 va_copy */
00019 #if defined(va_copy)
00020     /* C99 va_copy */
00021     #define kl_va_copy(a, b)  va_copy(a, b)
00022 #elif defined(__va_copy)
00023     /* GNU libc va_copy replacement */
00024     #define kl_va_copy(a, b)  __va_copy(a, b)
00025 #else
00026     #define VA_COPY_UNAVAIL 1
00027 #endif
00028 
00029 #endif  /* !_KLONE_VA_H_ */

←Products
Copyright © 2005-2012 - KoanLogic S.r.l. - All rights reserved