From 3e945c8cd8519d0973f14088d938fbc8eee9dc3c Mon Sep 17 00:00:00 2001 From: Ken Dyck Date: Sun, 22 Nov 2009 15:41:04 +0000 Subject: Define __SIG_ATOMIC_WIDTH__ for use in stdint.h. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89597 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Frontend/InitPreprocessor.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Frontend/InitPreprocessor.cpp') diff --git a/lib/Frontend/InitPreprocessor.cpp b/lib/Frontend/InitPreprocessor.cpp index a6b4e652a4..972c21f88d 100644 --- a/lib/Frontend/InitPreprocessor.cpp +++ b/lib/Frontend/InitPreprocessor.cpp @@ -401,6 +401,7 @@ static void InitializePredefinedMacros(const TargetInfo &TI, DefineTypeWidth("__WCHAR_WIDTH__", TI.getWCharType(), TI, Buf); DefineType("__WINT_TYPE__", TI.getWIntType(), Buf); DefineTypeWidth("__WINT_WIDTH__", TI.getWIntType(), TI, Buf); + DefineTypeWidth("__SIG_ATOMIC_WIDTH__", TI.getSigAtomicType(), TI, Buf); DefineFloatMacros(Buf, "FLT", &TI.getFloatFormat()); DefineFloatMacros(Buf, "DBL", &TI.getDoubleFormat()); -- cgit v1.2.3-18-g5258