[LLVMbugs] [Bug 11790] New: Don't set __GNUC__ and friends in microsoft mode, set _MSC_VER instead

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 17 21:16:18 PST 2012


             Bug #: 11790
           Summary: Don't set __GNUC__ and friends in microsoft mode, set
                    _MSC_VER instead
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nicolasweber at gmx.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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)
#error Please add support for your compiler in build/build_config.h

...and uses that to decide whether to #include <hash_set> or <ext/hash_set.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list