[NFC][Py Reformat] Added more commits to .git-blame-ignore-revs
[llvm-project.git] / libc / src / __support / macros / properties / compiler.h
blob54bcf84d927b1963677635d307ea0857c6c279d7
1 //===-- Compile time compiler detection -------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIBC_SUPPORT_MACROS_PROPERTIES_COMPILER_H
10 #define LLVM_LIBC_SUPPORT_MACROS_PROPERTIES_COMPILER_H
12 #if defined(__clang__)
13 #define LIBC_COMPILER_IS_CLANG
14 #endif
16 #if defined(__GNUC__) && !defined(__clang__)
17 #define LIBC_COMPILER_IS_GCC
18 #endif
20 #if defined(_MSC_VER)
21 #define LIBC_COMPILER_IS_MSC
22 #endif
24 #endif // LLVM_LIBC_SUPPORT_MACROS_PROPERTIES_COMPILER_H