Skip to content

Commit bc385d6

Browse files
authored
conf: setup to allow building libtiff to support ia32 envs in node (#285)
1 parent 5c4d064 commit bc385d6

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

LibTiff/binding.gyp

+5
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
"defines": [
3131
'HAVE_UNISTD_H=1'
3232
]
33+
}],
34+
['target_arch == "ia32"', {
35+
"defines": [
36+
'SIZEOF_SIZE_T=4'
37+
]
3338
}]
3439
],
3540
'include_dirs': [

LibTiff/tif_config.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@
4545
/* Define to the home page for this package. */
4646
#define PACKAGE_URL ""
4747

48-
/* Size of size_t */
48+
/* Size of size_t, allowing external override */
49+
#ifndef SIZEOF_SIZE_T
4950
#define SIZEOF_SIZE_T 8
51+
#endif
5052

5153

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

0 commit comments

Comments
 (0)