edouarda/brigand

Improve compiler detection macros

edouarda opened this issue · 4 comments

We provided users with a basic tool to detect compilers, in the next version it would be great to give access to the compiler version as well.

clang on visual studios defines _MSVC_VER which leads to misdetection.

That's correct, so we need to check for cland AND msvc

This should work:

#if  define(_MSC_VER) && !defined(__clang__)
#define BRIGAND_COMP_MSVC
#endif

Do you know if gcc does the same?

I can check, we use visual gdb at work