From 71ac53ee13b452310fdf8cb6acae0d8ba70c2848 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 1 Nov 2005 22:26:21 +0000 Subject: [PATCH] 2005-11-01 Ralf Corsepius * libc/include/stdint.h: Cleanup #if vs. #ifdef. --- newlib/ChangeLog | 4 ++++ newlib/libc/include/stdint.h | 17 ++++++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index e478880fc..4adf5c1b9 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,7 @@ +2005-11-01 Ralf Corsepius + + * libc/include/stdint.h: Cleanup #if vs. #ifdef. + 2005-10-31 Darin Johnson * libm/mathfp/s_mathcnst.c: Fix endian-ness check to be diff --git a/newlib/libc/include/stdint.h b/newlib/libc/include/stdint.h index 29bb8c5f8..0c8f23ada 100644 --- a/newlib/libc/include/stdint.h +++ b/newlib/libc/include/stdint.h @@ -7,7 +7,6 @@ */ /* - * @todo - Add fast_t types. * @todo - Add support for wint_t types. */ @@ -73,7 +72,7 @@ typedef int16_t int_least16_t; typedef uint16_t uint_least16_t; #define __int_least16_t_defined 1 -#ifndef __int_least8_t_defined +#if !__int_least8_t_defined typedef int16_t int_least8_t; typedef uint16_t uint_least8_t; #define __int_least8_t_defined 1 @@ -103,13 +102,13 @@ typedef int32_t int_least32_t; typedef uint32_t uint_least32_t; #define __int_least32_t_defined 1 -#ifndef __int_least8_t_defined +#if !__int_least8_t_defined typedef int32_t int_least8_t; typedef uint32_t uint_least8_t; #define __int_least8_t_defined 1 #endif -#ifndef __int_least16_t_defined +#if !__int_least16_t_defined typedef int32_t int_least16_t; typedef uint32_t uint_least16_t; #define __int_least16_t_defined 1 @@ -135,19 +134,19 @@ typedef int64_t int_least64_t; typedef uint64_t uint_least64_t; #define __int_least64_t_defined 1 -#ifndef __int_least8_t_defined +#if !__int_least8_t_defined typedef int64_t int_least8_t; typedef uint64_t uint_least8_t; #define __int_least8_t_defined 1 #endif -#ifndef __int_least16_t_defined +#if !__int_least16_t_defined typedef int64_t int_least16_t; typedef uint64_t uint_least16_t; #define __int_least16_t_defined 1 #endif -#ifndef __int_least32_t_defined +#if !__int_least32_t_defined typedef int64_t int_least32_t; typedef uint64_t uint_least32_t; #define __int_least32_t_defined 1 @@ -301,7 +300,7 @@ typedef unsigned long uintptr_t; #endif #if __int64_t_defined -#ifdef __have_long64 +#if __have_long64 #define INT64_MIN (-9223372036854775807L-1L) #define INT64_MAX 9223372036854775807L #define UINT64_MAX 18446744073709551615U @@ -313,7 +312,7 @@ typedef unsigned long uintptr_t; #endif #if __int_least64_t_defined -#ifdef __have_long64 +#if __have_long64 #define INT_LEAST64_MIN (-9223372036854775807L-1L) #define INT_LEAST64_MAX 9223372036854775807L #define UINT_LEAST64_MAX 18446744073709551615U