diff options
author | Zack Weinberg <zackw@panix.com> | 2018-02-07 16:17:49 -0500 |
---|---|---|
committer | Zack Weinberg <zackw@panix.com> | 2018-02-21 14:04:18 -0500 |
commit | 349579047db0fb55a2835ca20dfd646a45b6ac27 (patch) | |
tree | 911b34bf35866c92b5ef97a23167abd0383758b6 /libio/iolibio.h | |
parent | 039c721a30392790be50dba53b4c72dbcd65be67 (diff) | |
download | glibc-349579047db0fb55a2835ca20dfd646a45b6ac27.tar.gz glibc-349579047db0fb55a2835ca20dfd646a45b6ac27.tar.xz glibc-349579047db0fb55a2835ca20dfd646a45b6ac27.zip |
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/iolibio.h')
-rw-r--r-- | libio/iolibio.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libio/iolibio.h b/libio/iolibio.h index 52731b65f9..4d43d0e72d 100644 --- a/libio/iolibio.h +++ b/libio/iolibio.h @@ -7,10 +7,6 @@ /* These emulate stdio functionality, but with a different name (_IO_ungetc instead of ungetc), and using _IO_FILE instead of FILE. */ -#ifdef __cplusplus -extern "C" { -#endif - extern int _IO_fclose (_IO_FILE*); extern int _IO_new_fclose (_IO_FILE*); extern int _IO_old_fclose (_IO_FILE*); @@ -95,8 +91,4 @@ extern int __old_pclose (_IO_FILE *) __THROW; _IO_FILE *__new_freopen (const char *, const char *, _IO_FILE *) __THROW; _IO_FILE *__old_freopen (const char *, const char *, _IO_FILE *) __THROW; -#ifdef __cplusplus -} -#endif - #endif /* iolibio.h. */ |