diff options
| author | Elliott Hughes <enh@google.com> | 2015-01-22 01:52:05 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-01-22 01:52:06 +0000 |
| commit | d1668a71df761eb1644496f3e2c77c16fd54bb06 (patch) | |
| tree | 9acfbeb2c5fc1e858bed6db341004df078a2d4ab /libc/stdio/fileext.h | |
| parent | 4f11c59b3f3acffe6c8e359296a9e38c4b7edfb6 (diff) | |
| parent | 8b5df3920f2843c9cdf04160517c1e8b77c992f5 (diff) | |
| download | bionic-d1668a71df761eb1644496f3e2c77c16fd54bb06.zip bionic-d1668a71df761eb1644496f3e2c77c16fd54bb06.tar.gz bionic-d1668a71df761eb1644496f3e2c77c16fd54bb06.tar.bz2 | |
Merge "Turn on -Wold-style-cast and fix the errors."
Diffstat (limited to 'libc/stdio/fileext.h')
| -rw-r--r-- | libc/stdio/fileext.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/stdio/fileext.h b/libc/stdio/fileext.h index 75230cd..209815a 100644 --- a/libc/stdio/fileext.h +++ b/libc/stdio/fileext.h @@ -47,7 +47,12 @@ struct __sfileext { bool _stdio_handles_locking; /* __fsetlocking support */ }; +#if defined(__cplusplus) +#define _EXT(fp) reinterpret_cast<__sfileext*>((fp)->_ext._base) +#else #define _EXT(fp) ((struct __sfileext *)((fp)->_ext._base)) +#endif + #define _UB(fp) _EXT(fp)->_ub #define _FLOCK(fp) _EXT(fp)->_lock |
