[libcxx] r249740 - Split <float.h> out of <cfloat>.

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 8 13:37:44 PDT 2015


Author: rsmith
Date: Thu Oct  8 15:37:44 2015
New Revision: 249740

URL: http://llvm.org/viewvc/llvm-project?rev=249740&view=rev
Log:
Split <float.h> out of <cfloat>.

Added:
    libcxx/trunk/include/float.h
      - copied, changed from r249736, libcxx/trunk/include/cfloat
Modified:
    libcxx/trunk/include/cfloat

Modified: libcxx/trunk/include/cfloat
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/cfloat?rev=249740&r1=249739&r2=249740&view=diff
==============================================================================
--- libcxx/trunk/include/cfloat (original)
+++ libcxx/trunk/include/cfloat Thu Oct  8 15:37:44 2015
@@ -67,12 +67,4 @@ Macros:
 #pragma GCC system_header
 #endif
 
-#ifndef FLT_EVAL_METHOD
-#define FLT_EVAL_METHOD __FLT_EVAL_METHOD__
-#endif
-
-#ifndef DECIMAL_DIG
-#define DECIMAL_DIG __DECIMAL_DIG__
-#endif
-
 #endif  // _LIBCPP_CFLOAT

Copied: libcxx/trunk/include/float.h (from r249736, libcxx/trunk/include/cfloat)
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/float.h?p2=libcxx/trunk/include/float.h&p1=libcxx/trunk/include/cfloat&r1=249736&r2=249740&rev=249740&view=diff
==============================================================================
--- libcxx/trunk/include/cfloat (original)
+++ libcxx/trunk/include/float.h Thu Oct  8 15:37:44 2015
@@ -1,5 +1,5 @@
 // -*- C++ -*-
-//===--------------------------- cfloat -----------------------------------===//
+//===--------------------------- float.h ----------------------------------===//
 //
 //                     The LLVM Compiler Infrastructure
 //
@@ -8,11 +8,11 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP_CFLOAT
-#define _LIBCPP_CFLOAT
+#ifndef _LIBCPP_FLOAT_H
+#define _LIBCPP_FLOAT_H
 
 /*
-    cfloat synopsis
+    float.h synopsis
 
 Macros:
 
@@ -61,7 +61,7 @@ Macros:
 */
 
 #include <__config>
-#include <float.h>
+#include_next <float.h>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
 #pragma GCC system_header
@@ -75,4 +75,4 @@ Macros:
 #define DECIMAL_DIG __DECIMAL_DIG__
 #endif
 
-#endif  // _LIBCPP_CFLOAT
+#endif  // _LIBCPP_FLOAT_H




More information about the cfe-commits mailing list