How to detect GNU C and Microsoft C from C code

Post Reply
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

How to detect GNU C and Microsoft C from C code

Post by Antonio Linares »

For MinGW GCC:

#ifdef __GNUC__

For Microsoft C:

#ifdef _MSC_VER
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply