aboutsummaryrefslogtreecommitdiff
path: root/libio/bits
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2017-12-31 08:50:34 -0800
committerZack Weinberg <zackw@panix.com>2017-12-31 08:57:32 -0800
commit4f820792a6217027744d38fc223257914847bbcc (patch)
tree9a5ceb2e592590ad1718e3db16f3c8445d3a1feb /libio/bits
parent3e3c904daef69b8bf7d5cc07f793c9f07c3553ef (diff)
downloadglibc-4f820792a6217027744d38fc223257914847bbcc.tar
glibc-4f820792a6217027744d38fc223257914847bbcc.tar.gz
glibc-4f820792a6217027744d38fc223257914847bbcc.tar.bz2
glibc-4f820792a6217027744d38fc223257914847bbcc.zip
Correct improper-inclusion check in bits/libio-ldbl.h.
The patch which moved libio.h proper into the bits directory also changed the name of its guard macro, and I neglected to check whether anything depended on that name. It turns out that there is a conditionally-used bits header that looks at it; this broke the libgcc build on at least sparc64-*-* and sparcv9-*-*. * libio/bits/libio-ldbl.h: Correct check for improper inclusion. Add own multiple include guard.
Diffstat (limited to 'libio/bits')
-rw-r--r--libio/bits/libio-ldbl.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libio/bits/libio-ldbl.h b/libio/bits/libio-ldbl.h
index f238550e4b..b5fd97e359 100644
--- a/libio/bits/libio-ldbl.h
+++ b/libio/bits/libio-ldbl.h
@@ -16,9 +16,14 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
-#ifndef _IO_STDIO_H
+#ifndef _BITS_LIBIO_LDBL_H
+#define _BITS_LIBIO_LDBL_H 1
+
+#ifndef _BITS_LIBIO_H
# error "Never include <bits/libio-ldbl.h> directly; use <libio.h> instead."
#endif
__LDBL_REDIR_DECL (_IO_vfscanf)
__LDBL_REDIR_DECL (_IO_vfprintf)
+
+#endif