From 90f6fc11046608b9c6cad4f47b2804c290436876 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Thu, 2 Dec 2004 16:32:38 +0000 Subject: [PATCH] fixed config.h include used new align.h instead of host.h [r4562] --- ir/tv/fltcalc.c | 5 +---- ir/tv/strcalc.c | 13 ++++++++----- ir/tv/tv.c | 5 +++-- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/ir/tv/fltcalc.c b/ir/tv/fltcalc.c index bc9d803bd..4cb2a3d0b 100644 --- a/ir/tv/fltcalc.c +++ b/ir/tv/fltcalc.c @@ -1226,11 +1226,8 @@ LLDBL fc_val_to_float(const void *val) for (; (byte_offset<<3) < result_mantissa; byte_offset++) mantissa0 |= sc_sub_bits(_mant(value), result_mantissa, byte_offset) << ((byte_offset-4)<<3); -#ifndef HAVE_LONG_DOUBLE - mantissa0 &= 0x000FFFFF; /* get rid of garbage */ -#endif - #ifdef HAVE_LONG_DOUBLE + mantissa0 &= 0x000FFFFF; /* get rid of garbage */ buildval.val.high = sign << 15; buildval.val.high |= exponent; buildval.val.mid = mantissa0; diff --git a/ir/tv/strcalc.c b/ir/tv/strcalc.c index 110d55ba1..2fe8df019 100644 --- a/ir/tv/strcalc.c +++ b/ir/tv/strcalc.c @@ -15,21 +15,24 @@ # include "config.h" #endif - -#include "strcalc.h" - -#include +#ifdef HAVE_STDLIB_H +# include +#endif #ifdef HAVE_ALLOCA_H # include #endif #ifdef HAVE_MALLOC_H # include #endif +#ifdef HAVE_STRING_H +# include /* memset/memcmp */ +#endif #include /* assertions */ -#include /* memset/memcmp */ #include /* output for error messages */ #include /* definition of LONG_MIN, used in sc_get_val_from_long */ +#include "strcalc.h" + /* * local definitions and macros */ diff --git a/ir/tv/tv.c b/ir/tv/tv.c index cb6f12f05..7af7434e5 100644 --- a/ir/tv/tv.c +++ b/ir/tv/tv.c @@ -28,7 +28,9 @@ #include /* assertions */ #include /* atoi() */ -#include /* nice things for strings */ +#ifdef HAVE_STRING_H +# include /* nice things for strings */ +#endif #ifdef HAVE_STRINGS_H #include /* strings.h also includes bsd only function strcasecmp */ #endif @@ -46,7 +48,6 @@ #include "entity_t.h" /* needed to store pointers to entities */ #include "irmode_t.h" #include "irnode.h" /* defines boolean return values (pnc_number)*/ -#include "host.h" #include "strcalc.h" #include "fltcalc.h" -- 2.20.1