1 //===-- Compile time compiler detection -------------------------*- C++ -*-===//
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
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
16 #if defined(__GNUC__) && !defined(__clang__)
17 #define LIBC_COMPILER_IS_GCC
21 #define LIBC_COMPILER_IS_MSC
24 #endif // LLVM_LIBC_SUPPORT_MACROS_PROPERTIES_COMPILER_H