Please feel free to add your favorite system here :

 

--- a/tcc.c
<http://repo.or.cz/tinycc.git/blob/ab9b9077c9c25239de83ec4cb9662399b16c4bcc?
f=tcc.c> 

+++ b/tcc.c
<http://repo.or.cz/tinycc.git/blob/18a5d8188ac64fc8dd425668291616f330161747:
/tcc.c> 

@@
<http://repo.or.cz/tinycc.git/blob/ab9b9077c9c25239de83ec4cb9662399b16c4bcc?
f=tcc.c#l56> -56,8
<http://repo.or.cz/tinycc.git/blob/18a5d8188ac64fc8dd425668291616f330161747:
/tcc.c#l56> +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

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to