summaryrefslogtreecommitdiff
path: root/libio/libioP.h
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2018-02-07 16:17:49 -0500
committerZack Weinberg <zackw@panix.com>2018-02-21 14:04:18 -0500
commit349579047db0fb55a2835ca20dfd646a45b6ac27 (patch)
tree911b34bf35866c92b5ef97a23167abd0383758b6 /libio/libioP.h
parent039c721a30392790be50dba53b4c72dbcd65be67 (diff)
downloadglibc-349579047db0fb55a2835ca20dfd646a45b6ac27.tar.gz
Remove vestiges of external build support from libio headers.
As requested by Adhemerval, this patch removes some preprocessor conditionals from the libio headers that were only relevant when building libio outside glibc. Installed stripped libraries and executables are unchanged by this patch. * libio/iolibio.h, libio/libioP.h: Remove extern "C". * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS. Remove preprocessor conditionals on _LIBC and __USE_GNU, which are always true, and __cplusplus, which is always false.
Diffstat (limited to 'libio/libioP.h')
-rw-r--r--libio/libioP.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/libio/libioP.h b/libio/libioP.h
index 58cc9de094..abbf331685 100644
--- a/libio/libioP.h
+++ b/libio/libioP.h
@@ -52,10 +52,6 @@
adjusts the libio configuration. */
#include <_G_config.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#define _IO_seek_set 0
#define _IO_seek_cur 1
#define _IO_seek_end 2
@@ -731,10 +727,6 @@ extern int _IO_vscanf (const char *, _IO_va_list) __THROW;
# define _IO_pos_0 ((_IO_off64_t) 0)
#endif
-#ifdef __cplusplus
-}
-#endif
-
#ifdef _IO_MTSAFE_IO
/* check following! */
# ifdef _IO_USE_OLD_IO_FILE