Add support for -D__NetBSD__

This commit is contained in:
Kamil Rytarowski 2015-10-11 03:12:35 +02:00
parent 00ba4b7625
commit 5860b639c6

View File

@ -1138,6 +1138,11 @@ LIBTCCAPI TCCState *tcc_new(void)
tcc_define_symbol(s, "__FreeBSD_kernel__", NULL);
# endif
#endif
# if defined(__NetBSD__)
# define str(s) #s
tcc_define_symbol(s, "__NetBSD__", str( __NetBSD__));
# undef str
# endif
/* TinyCC & gcc defines */
#if defined TCC_TARGET_PE && defined TCC_TARGET_X86_64