xref: /minix/tools/compat/nl_types.h (revision 0a6a1f1d)
1*0a6a1f1dSLionel Sambuc /*	$NetBSD: nl_types.h,v 1.3 2014/11/12 15:08:52 joerg Exp $	*/
2c8a0e2f4SThomas Veerman 
3*0a6a1f1dSLionel Sambuc #if defined(_NLS_PRIVATE)
410b55966SThomas Veerman 
510b55966SThomas Veerman /* #if defined(__minix) */
610b55966SThomas Veerman /* <sys/cdefs> defines __format_arg, but on some other platforms it doesn't.
710b55966SThomas Veerman  * <nl_types.h> includes <sys/cdefs> because it needs __format_arg. As it might
810b55966SThomas Veerman  * not be defined, we do it here as a work around. */
910b55966SThomas Veerman #ifndef __format_arg
1010b55966SThomas Veerman #define __format_arg(fmtarg)	__attribute__((__format_arg__ (fmtarg)))
1110b55966SThomas Veerman #endif
1210b55966SThomas Veerman /* #endif defined(__minix) */
1310b55966SThomas Veerman 
14c8a0e2f4SThomas Veerman #include "../../include/nl_types.h"
15*0a6a1f1dSLionel Sambuc #elif defined(__GNUC__)
16*0a6a1f1dSLionel Sambuc #include_next <nl_types.h>
17c8a0e2f4SThomas Veerman #endif
18