Skip to content

Commit 2294531

Browse files
committed
Workaround for UCRT
1 parent ecc9542 commit 2294531

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: gifski
22
Type: Package
33
Title: Highest Quality GIF Encoder
4-
Version: 0.8.7
4+
Version: 0.8.7.1
55
Authors@R: c(
66
person("Jeroen", "Ooms", ,"jeroen@berkeley.edu", role = c("aut", "cre"),
77
comment = c(ORCID = "0000-0002-4035-0289")),

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
0.8.7.1
2+
- Add workaround for compiling with old rustc compilers
3+
- Add workaround for linking error with experimental UCRT toolchain
4+
15
0.8.7
26
- CRAN insists that we override the standard cargo/rust behaviour which
37
stores registry and crate data in ~/.cargo, because policy. So we now

src/wrapper.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,12 @@ attribute_visible void R_init_gifski(DllInfo *dll) {
8080
R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
8181
R_useDynamicSymbols(dll, FALSE);
8282
}
83+
84+
/* Workaround for linking error with experimental UCRT toolchain */
85+
#ifdef _WIN32
86+
#ifdef _UCRT
87+
FILE * __cdecl __imp___iob_func(void){
88+
return NULL;
89+
}
90+
#endif
91+
#endif

0 commit comments

Comments
 (0)