Skip to content

Commit fff07ff

Browse files
committed
Remove -cc gcc
1 parent f70cc66 commit fff07ff

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

io/tiff/ReadTiff.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
#define CAML_NAME_SPACE
2-
#include <signal.h>
3-
#include <stdio.h>
4-
52
#include <caml/alloc.h>
63
#include <caml/bigarray.h>
74
#include <caml/fail.h>
85
#include <caml/memory.h>
96
#include <caml/mlvalues.h>
7+
#include <stdio.h>
108

9+
#ifndef _WIN32
1110
#include <tiffio.h>
1211

1312
CAMLprim value read_tiff_file_to_tuple(value file) {
@@ -34,6 +33,7 @@ CAMLprim value read_tiff_file_to_tuple(value file) {
3433
NULL, dims);
3534

3635
uint32_t *buffer = (uint32_t *)Caml_ba_data_val(ba);
36+
3737
if (!(TIFFReadRGBAImageOriented(image, width, height, buffer,
3838
ORIENTATION_TOPLEFT, 0))) {
3939
TIFFClose(image);
@@ -49,3 +49,8 @@ CAMLprim value read_tiff_file_to_tuple(value file) {
4949

5050
CAMLreturn(res);
5151
}
52+
#else
53+
CAMLprim value read_tiff_file_to_tuple(value file) {
54+
caml_failwith("Tiff files are not supported on Windows platform");
55+
}
56+
#endif

0 commit comments

Comments
 (0)