diff options
| author | David Shaw <[email protected]> | 2003-07-10 12:13:53 +0000 |
|---|---|---|
| committer | David Shaw <[email protected]> | 2003-07-10 12:13:53 +0000 |
| commit | d8a6bd3b841dc9f883f7afc5574d15c05f12b83a (patch) | |
| tree | a93d59e1eb53729639fe9c653d95197c50f7b8e2 /include/types.h | |
| parent | * THANKS: Updates from stable. (diff) | |
| download | gnupg-d8a6bd3b841dc9f883f7afc5574d15c05f12b83a.tar.gz gnupg-d8a6bd3b841dc9f883f7afc5574d15c05f12b83a.zip | |
* types.h: Prefer using uint64_t when creating a 64-bit unsigned type.
This avoids a warning on compilers that support but complain about
unsigned long long.
* util.h (ascii_isspace): New variation on isspace() that is immune from
locale changes.
* util.h: Make sure that only ascii is passed to isfoo functions. (From
Werner on stable branch).
Diffstat (limited to 'include/types.h')
| -rw-r--r-- | include/types.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/types.h b/include/types.h index fc5381965..8abfa6e87 100644 --- a/include/types.h +++ b/include/types.h @@ -101,7 +101,11 @@ typedef unsigned long u32; */ #ifndef HAVE_U64_TYPEDEF #undef u64 /* maybe there is a macro with this name */ -#if SIZEOF_UNSIGNED_INT == 8 +#if SIZEOF_UINT64_T == 8 +typedef uint64_t u64; +#define U64_C(c) (UINT64_C(c)) +#define HAVE_U64_TYPEDEF +#elif SIZEOF_UNSIGNED_INT == 8 typedef unsigned int u64; #define U64_C(c) (c ## U) #define HAVE_U64_TYPEDEF @@ -113,10 +117,6 @@ typedef unsigned long u64; typedef unsigned long long u64; #define U64_C(c) (c ## ULL) #define HAVE_U64_TYPEDEF -#elif SIZEOF_UINT64_T == 8 -typedef uint64_t u64; -#define U64_C(c) (UINT64_C(c)) -#define HAVE_U64_TYPEDEF #endif #endif |
