[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Detecting GCC being used ...
From:       Franz Sirl <Franz.Sirl-kernel () lauterbach ! com>
Date:       2000-06-14 11:01:27
[Download RAW message or body]

At 11:50 14.06.00, Thomas Leitner wrote:

>Hi,
>
>Short question: What is the recommended way to detect if a file is being
>compiled by GCC or another compiler. I thought there might be something
>like

Try with __GNUC__ and __GNUC_MINOR__ to detect compiler and compiler version.

You can find out which macros are predefined with gcc, if you compile an 
empty file with:

gcc -ansi -E -dM murx.c

The -ansi switch disables macros you shouldn't use anymore to test for 
compiler/platform specifics.

Franz.

 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic