|
From: | Christian Jullien |
Subject: | Re: [Tinycc-devel] tcc build on OSX |
Date: | Sat, 30 Apr 2016 08:51:29 +0200 |
I also use __MACH__ which is for Darwin #if (defined(__MACH__) && defined(__APPLE__)) #define OLOSSYSTEMNAME "macosx" #endif For different compiler/architecture/os detection I suggest you have a look at: https://sourceforge.net/p/predef/wiki/Home/ For OS: https://sourceforge.net/p/predef/wiki/OperatingSystems/ See also: https://sourceforge.net/projects/predef/files/predef/0.2/ I'm sure that at you're not even aware that more than half of them existed. -----Original Message----- From: Tinycc-devel [mailto:address@hidden On Behalf Of Sergey Korshunoff Sent: samedi 30 avril 2016 08:42 To: address@hidden Subject: Re: [Tinycc-devel] tcc build on OSX >> How to check a OSX target in *.c code? Any proposal? > #ifdef __APPLE__ This means that tcc for Darwin must define __APPLE__ too? PS: there is a code in tcc which must be #ifdef -ed. for Darwin. But we don't have CONFIG_TARGETOS in config.h _______________________________________________ Tinycc-devel mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/tinycc-devel
[Prev in Thread] | Current Thread | [Next in Thread] |