diff options
| author | Jonathan Roelofs <jonathan@codesourcery.com> | 2015-02-03 15:34:17 +0000 |
|---|---|---|
| committer | Jonathan Roelofs <jonathan@codesourcery.com> | 2015-02-03 15:34:17 +0000 |
| commit | 07d9d76a2d79e080f7cd022755c4f963d71cc529 (patch) | |
| tree | 0b933fe02ec213d9ea38b4cc420aaae58cd90a43 /libcxx/include/iosfwd | |
| parent | eb29c68df226ecedd0d105d73a1b63316ac3bec3 (diff) | |
| download | bcm5719-llvm-07d9d76a2d79e080f7cd022755c4f963d71cc529.tar.gz bcm5719-llvm-07d9d76a2d79e080f7cd022755c4f963d71cc529.zip | |
Revert: Revert r227804: Use fseek/ftell instead of fseeko/ftello when Newlib is the libc
EricWF has updated the compilers on his buildbots. Hopefully they won't crash now.
llvm-svn: 227971
Diffstat (limited to 'libcxx/include/iosfwd')
| -rw-r--r-- | libcxx/include/iosfwd | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libcxx/include/iosfwd b/libcxx/include/iosfwd index d24c227bef7..eccfd349a4a 100644 --- a/libcxx/include/iosfwd +++ b/libcxx/include/iosfwd @@ -180,7 +180,12 @@ typedef fpos<mbstate_t> u16streampos; typedef fpos<mbstate_t> u32streampos; #endif // _LIBCPP_HAS_NO_UNICODE_CHARS +#if defined(_NEWLIB_VERSION) +// On newlib, off_t is 'long int' +typedef long int streamoff; // for char_traits in <string> +#else typedef long long streamoff; // for char_traits in <string> +#endif template <class _CharT, // for <stdexcept> class _Traits = char_traits<_CharT>, |

