summaryrefslogtreecommitdiff
path: root/support/cpp/libcpp/files.c
diff options
context:
space:
mode:
Diffstat (limited to 'support/cpp/libcpp/files.c')
-rw-r--r--support/cpp/libcpp/files.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/support/cpp/libcpp/files.c b/support/cpp/libcpp/files.c
index 7c8e01cf2..456c0b0f1 100644
--- a/support/cpp/libcpp/files.c
+++ b/support/cpp/libcpp/files.c
@@ -606,13 +606,11 @@ read_file_guts (cpp_reader *pfile, _cpp_file *file)
SSIZE_MAX to be much smaller than the actual range of the
type. Use INTTYPE_MAXIMUM unconditionally to ensure this
does not bite us. */
-#ifndef __BORLANDC__
if (file->st.st_size > INTTYPE_MAXIMUM (ssize_t))
{
cpp_error (pfile, CPP_DL_ERROR, "%s is too large", file->path);
return false;
}
-#endif
size = file->st.st_size;
}
@@ -643,18 +641,9 @@ read_file_guts (cpp_reader *pfile, _cpp_file *file)
return false;
}
-#ifndef __BORLANDC__
- /* For some reason, even though we opened with O_BINARY,
- * Borland C++ seems to insist on doing CR/LF -> LF
- * translations for us, which results in the file appearing
- * shorter than stat told us it should be.
- *
- * This sucks, but don't bother throwing a warning.
- */
if (regular && total != size && STAT_SIZE_RELIABLE (file->st))
cpp_error (pfile, CPP_DL_WARNING,
"%s is shorter than expected", file->path);
-#endif
file->buffer = _cpp_convert_input (pfile,
CPP_OPTION (pfile, input_charset),