From 6cb74ecacfcf47ca3660ed9254fc06abb34e04e3 Mon Sep 17 00:00:00 2001 From: Kamil Rytarowski Date: Sun, 11 Oct 2015 11:58:04 +0200 Subject: [PATCH] Define __WINT_TYPE__ as int in NetBSD --- libtcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtcc.c b/libtcc.c index 2b48d8f4..2aa1eb73 100644 --- a/libtcc.c +++ b/libtcc.c @@ -1161,7 +1161,7 @@ LIBTCCAPI TCCState *tcc_new(void) /* wint_t is unsigned int by default, but (signed) int on BSDs and unsigned short on windows. Other OSes might have still other conventions, sigh. */ -#if defined(__FreeBSD__) || defined (__FreeBSD_kernel__) +#if defined(__FreeBSD__) || defined (__FreeBSD_kernel__) || defined(__NetBSD__) tcc_define_symbol(s, "__WINT_TYPE__", "int"); #else tcc_define_symbol(s, "__WINT_TYPE__", "unsigned int");