tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] tcc now displays the right system name with -v or -vv


From: Christian Jullien
Subject: [Tinycc-devel] tcc now displays the right system name with -v or -vv
Date: Sat, 15 Oct 2016 09:53:07 +0200

Please feel free to add your favorite system here :

 

--- 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;

 

 

https://sourceforge.net/p/predef/wiki/OperatingSystems/ is a great help to have official identification macros.

 

Christian


reply via email to

[Prev in Thread] Current Thread [Next in Thread]