pkgsrc/lang/micropython/patches/patch-lib_utils_printf.c
hauke e7371253e2 Update lang/micropython to v1.9.2.
Changes are many, but upstream does not maintain a changelog.
2017-11-29 15:13:31 +00:00

17 lines
445 B
C

$NetBSD: patch-lib_utils_printf.c,v 1.1 2017/11/29 15:13:32 hauke Exp $
Undefine macro names we intend to implement as functions
--- lib/utils/printf.c.orig 2017-08-23 01:50:10.000000000 +0000
+++ lib/utils/printf.c
@@ -40,6 +40,10 @@
#endif
#undef putchar // Some stdlibs have a #define for putchar
+
+#undef snprintf
+#undef vsnprintf
+
int printf(const char *fmt, ...);
int vprintf(const char *fmt, va_list ap);
int putchar(int c);