Skip to content

Commit

Permalink
Remove -cc gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
dmtrKovalenko committed Aug 23, 2024
1 parent f70cc66 commit c0e92ef
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion io/tiff/ReadTiff.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#define CAML_NAME_SPACE
#include <signal.h>
#include <stdio.h>

#include <caml/alloc.h>
Expand All @@ -10,6 +9,13 @@

#include <tiffio.h>

#ifdef _WIN32
#include <excpt.h> // For structured exception handling (SEH)
#include <setjmpex.h>
#include <signal.h>
#include <windows.h>
#endif

CAMLprim value read_tiff_file_to_tuple(value file) {
CAMLparam1(file);
CAMLlocal2(res, ba);
Expand All @@ -34,6 +40,7 @@ CAMLprim value read_tiff_file_to_tuple(value file) {
NULL, dims);

uint32_t *buffer = (uint32_t *)Caml_ba_data_val(ba);

if (!(TIFFReadRGBAImageOriented(image, width, height, buffer,
ORIENTATION_TOPLEFT, 0))) {
TIFFClose(image);
Expand Down

0 comments on commit c0e92ef

Please sign in to comment.