config: prevent the re-definition of a macro
This causes unnecessary warnings when building with `cl`. Newer versions of the C standard permit the redefinition of the macro to the same value (which is the case here), unfortunately, `cl` does not yet implement this. Add a check to prevent the redefinition. llvm-svn: 293439
This commit is contained in:
parent
76073f8d22
commit
87996f906a
|
@ -12,8 +12,10 @@
|
|||
#define _LIBCPP_CONFIG
|
||||
|
||||
#if defined(_MSC_VER) && !defined(__clang__)
|
||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
#define _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER
|
||||
#pragma GCC system_header
|
||||
|
|
Loading…
Reference in New Issue