Skip to content

Commit

Permalink
conf: setup to allow building libtiff to support ia32 envs in node (#285
Browse files Browse the repository at this point in the history
)
  • Loading branch information
galkahana authored Sep 23, 2024
1 parent 5c4d064 commit bc385d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions LibTiff/binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
"defines": [
'HAVE_UNISTD_H=1'
]
}],
['target_arch == "ia32"', {
"defines": [
'SIZEOF_SIZE_T=4'
]
}]
],
'include_dirs': [
Expand Down
4 changes: 3 additions & 1 deletion LibTiff/tif_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@
/* Define to the home page for this package. */
#define PACKAGE_URL ""

/* Size of size_t */
/* Size of size_t, allowing external override */
#ifndef SIZEOF_SIZE_T
#define SIZEOF_SIZE_T 8
#endif


/** Maximum number of TIFF IFDs that libtiff can iterate through in a file. */
Expand Down

0 comments on commit bc385d6

Please sign in to comment.