Improve compiler detection macros
edouarda opened this issue · 4 comments
edouarda commented
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.
odinthenerd commented
clang on visual studios defines _MSVC_VER which leads to misdetection.
edouarda commented
That's correct, so we need to check for cland AND msvc
edouarda commented
This should work:
#if define(_MSC_VER) && !defined(__clang__)
#define BRIGAND_COMP_MSVC
#endif
Do you know if gcc does the same?
odinthenerd commented
I can check, we use visual gdb at work