Add support for -D__NetBSD__
This commit is contained in:
parent
00ba4b7625
commit
5860b639c6
1 changed files with 5 additions and 0 deletions
5
libtcc.c
5
libtcc.c
|
@ -1137,6 +1137,11 @@ LIBTCCAPI TCCState *tcc_new(void)
|
|||
# if defined(__FreeBSD_kernel__)
|
||||
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 */
|
||||
|
|
Loading…
Reference in a new issue