tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Check if compiler is TCC


From: Stephan Beal
Subject: Re: [Tinycc-devel] Check if compiler is TCC
Date: Tue, 9 Jul 2013 17:32:46 +0200

On Tue, Jul 9, 2013 at 5:21 PM, Javier San Juan Cervera <address@hidden> wrote:
I have a project that I am building with different compilers, and I need to identify the compiler within the source to do different things.

Does TCC define a macro so I can do something like the following?:

#ifdef TCC
// TCC ony code...
#endif

You might find this helpful:

http://sourceforge.net/p/predef/wiki/Compilers/

per that page, __TINYC__ is what you're looking for.
 

--
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal

reply via email to

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