mirror of
https://github.com/frida/tinycc
synced 2024-11-24 16:49:44 +03:00
Add support for -D__NetBSD__
This commit is contained in:
parent
00ba4b7625
commit
5860b639c6
5
libtcc.c
5
libtcc.c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user