Skip to content

Don't set __GNUC__ and friends in microsoft mode, set _MSC_VER instead #12162

Closed
@nico

Description

@nico
Bugzilla Link 11790
Resolution FIXED
Resolved on Aug 27, 2014 08:48
Version unspecified
OS Windows NT
Blocks llvm/llvm-bugzilla-archive#13707
CC @AaronBallman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions