diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-05-09 13:44:02 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-05-16 12:59:22 +0200 |
commit | c253ec3a9c45cfce3661f38bc2f5156d4bdd7969 (patch) | |
tree | e925e549cc7525e6ed08ab5c10b13bf45e84e86e /sysdep/config.h | |
parent | 7a855725f2ffde508da0c7ee01dc1bcd6e0a5d93 (diff) |
Some more autoconf cleanups
Replace integer type width detection with C99 fixed-width types.
Also remove some unused or obsolete code.
Thanks to Ruben Kerkhof for the patchset.
Diffstat (limited to 'sysdep/config.h')
-rw-r--r-- | sysdep/config.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/sysdep/config.h b/sysdep/config.h index 84085f9c..e529cd86 100644 --- a/sysdep/config.h +++ b/sysdep/config.h @@ -24,16 +24,18 @@ #include "sysdep/paths.h" /* Types */ -typedef signed INTEGER_8 s8; -typedef unsigned INTEGER_8 u8; -typedef INTEGER_16 s16; -typedef unsigned INTEGER_16 u16; -typedef INTEGER_32 s32; -typedef unsigned INTEGER_32 u32; -typedef INTEGER_64 s64; -typedef unsigned INTEGER_64 u64; -typedef u8 byte; -typedef u16 word; + +#include <stdint.h> +typedef int8_t s8; +typedef uint8_t u8; +typedef int16_t s16; +typedef uint16_t u16; +typedef int32_t s32; +typedef uint32_t u32; +typedef int64_t s64; +typedef uint64_t u64; +typedef uint8_t byte; +typedef uint16_t word; typedef unsigned int uint; #endif |