Skip to content

Commit d3802b4

Browse files
committed
Added dummy function for MSC
1 parent 5a4cfcd commit d3802b4

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

mp_printf_extension.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,16 @@
44
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
55
/* SPDX-License-Identifier: Unlicense */
66

7-
/* TOD: find min version of glibc. Seems to be >2.9, check */
7+
#ifdef _MSC_VER
8+
static int s_mp_print_mp_int(FILE *stream, const struct printf_info *info, const void *const *args){
9+
(void)(stream);
10+
(void)(info);
11+
(void)(args);
12+
return MP_VAL;
13+
}
14+
#else
15+
16+
/* TODO: find min version of glibc. Seems to be >2.9, check */
817
#if (!(defined MP_NO_FILE) && (defined __GLIBC__))
918
#include <printf.h>
1019
static int s_mp_print_mp_int(FILE *stream, const struct printf_info *info, const void *const *args)
@@ -112,3 +121,4 @@ mp_err mp_printf_extension(void)
112121
}
113122
#endif
114123
#endif
124+
#endif

0 commit comments

Comments
 (0)