From b3a4969b70c1b869879c7bcf7e9f0d658d7f2e26 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Thu, 17 Jul 2014 18:31:20 +0000 Subject: Provide __SIG_ATOMIC_MAX__ next to __SIG_ATOMIC_WIDTH__. llvm-svn: 213289 --- clang/lib/Frontend/InitPreprocessor.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/Frontend/InitPreprocessor.cpp') diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp index 2d6a3095334..25477eab65c 100644 --- a/clang/lib/Frontend/InitPreprocessor.cpp +++ b/clang/lib/Frontend/InitPreprocessor.cpp @@ -677,6 +677,7 @@ static void InitializePredefinedMacros(const TargetInfo &TI, DefineType("__WINT_TYPE__", TI.getWIntType(), Builder); DefineTypeWidth("__WINT_WIDTH__", TI.getWIntType(), TI, Builder); DefineTypeWidth("__SIG_ATOMIC_WIDTH__", TI.getSigAtomicType(), TI, Builder); + DefineTypeSize("__SIG_ATOMIC_MAX__", TI.getSigAtomicType(), TI, Builder); DefineType("__CHAR16_TYPE__", TI.getChar16Type(), Builder); DefineType("__CHAR32_TYPE__", TI.getChar32Type(), Builder); -- cgit v1.2.3