From 776364f395d786c4c27e1f7a49cbba38951d9820 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Fri, 10 Sep 2010 21:09:07 +0200 Subject: Add support for __FreeBSD_kernel__ kernel Add support for kfreebsd-i386 and kfreebsd-amd64 Debian arch with thanks to Pierre Chifflier . --- libtcc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libtcc.c') diff --git a/libtcc.c b/libtcc.c index a9920c3..a89ecc3 100644 --- a/libtcc.c +++ b/libtcc.c @@ -943,6 +943,9 @@ LIBTCCAPI TCCState *tcc_new(void) tcc_define_symbol(s, "__FreeBSD__", str( __FreeBSD__)); #undef str #endif +#if defined(__FreeBSD_kernel__) + tcc_define_symbol(s, "__FreeBSD_kernel__", NULL); +#endif #if defined(__linux) tcc_define_symbol(s, "__linux__", NULL); tcc_define_symbol(s, "__linux", NULL); -- cgit v1.3.1