From 18a5d8188ac64fc8dd425668291616f330161747 Mon Sep 17 00:00:00 2001 From: Christian Jullien Date: Sat, 15 Oct 2016 09:47:08 +0200 Subject: [PATCH] World is not reduced to either Windows or Linux --- tcc.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/tcc.c b/tcc.c index ab9b907..f74c908 100644 --- a/tcc.c +++ b/tcc.c @@ -56,8 +56,21 @@ static void display_info(TCCState *s, int what) #endif #ifdef TCC_TARGET_PE " Windows" -#else +#elif defined(__APPLE__) + /* Current Apple OS name as of 2016 */ + " macOS" +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) + " FreeBSD" +#elif defined(__DragonFly__) + " DragonFly" +#elif defined(__NetBSD__) + " NetBSD" +#elif defined(__OpenBSD__) + " OpenBSD" +#elif defined(__linux__) " Linux" +#else + " Unidentified system" #endif ")\n", TCC_VERSION); break;