diff options
Diffstat (limited to 'contrib/llvm-project/clang/lib/Headers/iso646.h')
-rw-r--r-- | contrib/llvm-project/clang/lib/Headers/iso646.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/contrib/llvm-project/clang/lib/Headers/iso646.h b/contrib/llvm-project/clang/lib/Headers/iso646.h new file mode 100644 index 000000000000..b53fcd9b4e53 --- /dev/null +++ b/contrib/llvm-project/clang/lib/Headers/iso646.h @@ -0,0 +1,31 @@ +/*===---- iso646.h - Standard header for alternate spellings of operators---=== + * + * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. + * See https://llvm.org/LICENSE.txt for license information. + * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception + * + *===-----------------------------------------------------------------------=== + */ + +#ifndef __ISO646_H +#define __ISO646_H +#if defined(__MVS__) && __has_include_next(<iso646.h>) +#include_next <iso646.h> +#else + +#ifndef __cplusplus +#define and && +#define and_eq &= +#define bitand & +#define bitor | +#define compl ~ +#define not ! +#define not_eq != +#define or || +#define or_eq |= +#define xor ^ +#define xor_eq ^= +#endif + +#endif /* __MVS__ */ +#endif /* __ISO646_H */ |