This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How to test 4 compiler version


This macro:
#if ((_MSC_VER >= 1600) ||  #ifdef (GCC_VERSION > 40902));
gives me a warning that shays:â'
warning: assertions are a deprecated extension [-Wdeprecated]
How do we test for compiler versions in gcc?

Thanks
Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]