How to detect GNU C and Microsoft C from C code

How to detect GNU C and Microsoft C from C code

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Return to Utilities / Utilidades

Who is online

Users browsing this forum: No registered users and 10 guests