-/* $Id$ */
/*
* Copyright (c) 1990-1997 Sam Leffler
# include <io.h>
#endif
-#include "tiffiop.h"
-
-#ifndef BINMODE
-# define BINMODE
+#ifdef NEED_LIBPORT
+# include "libport.h"
#endif
+#include "tiffiop.h"
+
#ifndef EXIT_SUCCESS
# define EXIT_SUCCESS 0
#endif
else if (compression_in == COMPRESSION_CCITTFAX4)
TIFFSetField(faxTIFF, TIFFTAG_GROUP4OPTIONS, group4options_in);
for (pn = 0; optind < argc; pn++, optind++) {
- in = fopen(argv[optind], "r" BINMODE);
+ in = fopen(argv[optind], "rb");
if (in == NULL) {
fprintf(stderr,
"%s: %s: Can not open\n", argv[0], argv[optind]);
uint16 badrun;
int ok;
- tifin->tif_rawdatasize = TIFFGetFileSize(tifin);
+ tifin->tif_rawdatasize = (tmsize_t)TIFFGetFileSize(tifin);
tifin->tif_rawdata = _TIFFmalloc(tifin->tif_rawdatasize);
if (tifin->tif_rawdata == NULL) {
TIFFError(tifin->tif_name, "Not enough memory");
}
/* vim: set ts=8 sts=8 sw=8 noet: */
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */