[cfe-dev] -fms-extensions / novtable

Aaron Ballman aaron at aaronballman.com
Thu Mar 26 07:40:37 PDT 2015


On Thu, Mar 26, 2015 at 4:26 AM, Domagoj Saric
<domagoj.saric at littleendian.com> wrote:
> Hi, is there a way to detect (e.g. with an #ifdef) if -fms-extensions is in
> effect (so that one can use __declspec( novtable ) )?

The best way is to use #if __has_declspec_attribute(novtable) when
compiling with Clang.

~Aaron

>
>
>
> --
> Domagoj Saric
> Software Architect
> www.LittleEndian.com
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev



More information about the cfe-dev mailing list