/* Enable GNU extensions on systems that have them.  */
#ifndef _GNU_SOURCE
# undef _GNU_SOURCE
#endif

#mesondefine HAVE_CONFIG_H

#mesondefine HAVE_UNISTD_H
#mesondefine HAVE_ALLOCA_H

#mesondefine HAVE_EX_USAGE

#mesondefine HAVE_ASPRINTF
#mesondefine HAVE_STRCHRNUL
#mesondefine HAVE_STRNDUP
#mesondefine HAVE_MEMPCPY

#mesondefine HAVE_DECL_PROGRAM_INVOCATION_NAME
#mesondefine HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME

#mesondefine HAVE_DECL_FWRITE_UNLOCKED
#mesondefine HAVE_DECL_CLEARERR_UNLOCKED
#mesondefine HAVE_DECL_FEOF_UNLOCKED
#mesondefine HAVE_DECL_FERROR_UNLOCKED
#mesondefine HAVE_DECL_FFLUSH_UNLOCKED
#mesondefine HAVE_DECL_FGETS_UNLOCKED
#mesondefine HAVE_DECL_FPUTC_UNLOCKED
#mesondefine HAVE_DECL_FPUTS_UNLOCKED
#mesondefine HAVE_DECL_FLOCKFILE
#mesondefine HAVE_DECL_PUTC_UNLOCKED

#if __GNUC__ && HAVE_GCC_ATTRIBUTE
# define NORETURN __attribute__ ((__noreturn__))
# define PRINTF_STYLE(f, a) __attribute__ ((__format__ (__printf__, f, a)))
# define UNUSED __attribute__ ((__unused__))
#else
# define NORETURN
# define PRINTF_STYLE(f, a)
# define UNUSED
#endif
