Page 1 of 1

How to detect GNU C and Microsoft C from C code

Posted: Wed Nov 30, 2016 10:13 am
by Antonio Linares
For MinGW GCC:

#ifdef __GNUC__

For Microsoft C:

#ifdef _MSC_VER