Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / ntp / include / isc / formatcheck.h
blobf67391a08d1445b55038f3d4a64852a32f5e6787
1 /* $NetBSD$ */
3 /*
4 * Copyright (C) 2000, 2001 Internet Software Consortium.
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
10 * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
11 * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
12 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
13 * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
14 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
15 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
16 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
17 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20 /* Id: formatcheck.h,v 1.6 2001/01/09 21:56:55 bwelling Exp */
22 #ifndef ISC_FORMATCHECK_H
23 #define ISC_FORMATCHECK_H 1
26 * fmt is the location of the format string parameter.
27 * args is the location of the first argument (or 0 for no argument checking).
28 * Note: the first parameter is 1, not 0.
30 #ifdef __GNUC__
31 #define ISC_FORMAT_PRINTF(fmt, args) __attribute__((__format__(__printf__, fmt, args)))
32 #else
33 #define ISC_FORMAT_PRINTF(fmt, args)
34 #endif
36 #endif /* ISC_FORMATCHECK_H */