aboutsummaryrefslogtreecommitdiff
path: root/tcc.c
diff options
context:
space:
mode:
authorChristian Jullien <jullien@sims3.eligis.com>2016-10-15 09:47:08 +0200
committerChristian Jullien <jullien@sims3.eligis.com>2016-10-15 09:47:08 +0200
commit18a5d8188ac64fc8dd425668291616f330161747 (patch)
tree36f8bd069d393c653c97fa3f0cc1e72d02f8e1fa /tcc.c
parent383f568a64d96c9f742d3c05a86f120224e5f9db (diff)
downloadtinycc-18a5d8188ac64fc8dd425668291616f330161747.tar.gz
tinycc-18a5d8188ac64fc8dd425668291616f330161747.tar.bz2
World is not reduced to either Windows or Linux
Diffstat (limited to 'tcc.c')
-rw-r--r--tcc.c15
1 files changed, 14 insertions, 1 deletions
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;