OSDN Git Service

Support: Add missing #include.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 18 Jan 2018 20:49:33 +0000 (20:49 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 18 Jan 2018 20:49:33 +0000 (20:49 +0000)
This #include is necessary to provide the definitions of _fpclass
and _FPCLASS_NZ when building with libc++.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@322885 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/NativeFormatting.cpp

index b951a88..85b4bfb 100644 (file)
@@ -14,6 +14,8 @@
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/Support/Format.h"
 
+#include <float.h>
+
 using namespace llvm;
 
 template<typename T, std::size_t N>