Don't set __GNUC__ and friends in microsoft mode, set _MSC_VER instead #12162
Labels
bugzilla
Issues migrated from bugzilla
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
Extended Description
Probably important for many projects.
Chromium for example uses this for compiler detection:
// Compiler detection.
#if defined(GNUC)
#define COMPILER_GCC 1
#elif defined(_MSC_VER)
#define COMPILER_MSVC 1
#else
#error Please add support for your compiler in build/build_config.h
#endif
...and uses that to decide whether to #include <hash_set> or <ext/hash_set.
The text was updated successfully, but these errors were encountered: