From 414a4cdebc45925b59225cca208fee9c658b273e Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 15 Feb 2012 21:47:55 -0500 Subject: [PATCH] add float_t and double_t to math.h --- arch/arm/bits/alltypes.h.sh | 3 +++ arch/i386/bits/alltypes.h.sh | 3 +++ arch/x86_64/bits/alltypes.h.sh | 3 +++ include/math.h | 2 ++ 4 files changed, 11 insertions(+) diff --git a/arch/arm/bits/alltypes.h.sh b/arch/arm/bits/alltypes.h.sh index af73e664..ddc5c06f 100755 --- a/arch/arm/bits/alltypes.h.sh +++ b/arch/arm/bits/alltypes.h.sh @@ -56,6 +56,9 @@ TYPEDEF uint64_t uint_fast64_t; TYPEDEF long intptr_t; TYPEDEF unsigned long uintptr_t; +TYPEDEF float float_t; +TYPEDEF double double_t; + TYPEDEF long time_t; TYPEDEF int suseconds_t; STRUCT timeval { time_t tv_sec; int tv_usec; }; diff --git a/arch/i386/bits/alltypes.h.sh b/arch/i386/bits/alltypes.h.sh index 5aacc293..b1505a11 100755 --- a/arch/i386/bits/alltypes.h.sh +++ b/arch/i386/bits/alltypes.h.sh @@ -64,6 +64,9 @@ TYPEDEF uint64_t uint_fast64_t; TYPEDEF long intptr_t; TYPEDEF unsigned long uintptr_t; +TYPEDEF long double float_t; +TYPEDEF long double double_t; + TYPEDEF long time_t; TYPEDEF int suseconds_t; STRUCT timeval { time_t tv_sec; int tv_usec; }; diff --git a/arch/x86_64/bits/alltypes.h.sh b/arch/x86_64/bits/alltypes.h.sh index 10fc3d52..929a0f67 100755 --- a/arch/x86_64/bits/alltypes.h.sh +++ b/arch/x86_64/bits/alltypes.h.sh @@ -55,6 +55,9 @@ TYPEDEF uint64_t uint_fast64_t; TYPEDEF long intptr_t; TYPEDEF unsigned long uintptr_t; +TYPEDEF double float_t; +TYPEDEF double double_t; + TYPEDEF long time_t; TYPEDEF long suseconds_t; STRUCT timeval { time_t tv_sec; long tv_usec; }; diff --git a/include/math.h b/include/math.h index 9c5f06e7..1a5f6fe9 100644 --- a/include/math.h +++ b/include/math.h @@ -5,6 +5,8 @@ extern "C" { #endif +#define __NEED_float_t +#define __NEED_double_t #define __NEED___uint16_t #define __NEED___uint32_t #define __NEED___uint64_t -- 2.25.1