summaryrefslogtreecommitdiff
path: root/lib/argp.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/argp.h')
-rw-r--r--lib/argp.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/argp.h b/lib/argp.h
index ae0edd390e..7de939a2a1 100644
--- a/lib/argp.h
+++ b/lib/argp.h
@@ -19,6 +19,11 @@
#ifndef _ARGP_H
#define _ARGP_H
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, _GL_ATTRIBUTE_FORMAT. */
+#if !_LIBC && !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
#include <stdio.h>
#include <ctype.h>
#include <getopt.h>
@@ -590,9 +595,6 @@ extern void *__argp_input (const struct argp *__restrict __argp,
# define __argp_state_help argp_state_help
# define __option_is_short _option_is_short
# define __option_is_end _option_is_end
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
_GL_INLINE_HEADER_BEGIN
# ifndef ARGP_EI
# define ARGP_EI _GL_INLINE