FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index Utilities / Utilidades How to detect GNU C and Microsoft C from C code
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

How to detect GNU C and Microsoft C from C code

Posted: Wed Nov 30, 2016 10:13 AM

For MinGW GCC:

ifdef GNUC

For Microsoft C:

ifdef _MSC_VER

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion