diff options
| author | RSDuck <rsduck@users.noreply.github.com> | 2020-10-01 13:32:06 +0200 | 
|---|---|---|
| committer | RSDuck <rsduck@users.noreply.github.com> | 2020-10-01 13:32:06 +0200 | 
| commit | 9d5791f8e51be38821ea64053f06c54e2b36b8b8 (patch) | |
| tree | 668e06a70be563d338889838cfdb35d16d3fd16f /src | |
| parent | 697730240394cd9fedcf7924f29ffa625fc784fd (diff) | |
use fixed sized integers from stdint.h
Diffstat (limited to 'src')
| -rw-r--r-- | src/types.h | 18 | 
1 files changed, 10 insertions, 8 deletions
diff --git a/src/types.h b/src/types.h index 234d4c0..c10b70d 100644 --- a/src/types.h +++ b/src/types.h @@ -19,13 +19,15 @@  #ifndef TYPES_H  #define TYPES_H -typedef unsigned char       u8; -typedef unsigned short      u16; -typedef unsigned int        u32; -typedef unsigned long long int   u64; -typedef signed char         s8; -typedef signed short        s16; -typedef signed int          s32; -typedef signed long long int     s64; +#include <stdint.h> + +typedef uint8_t     u8; +typedef uint16_t    u16; +typedef uint32_t    u32; +typedef uint64_t    u64; +typedef int8_t      s8; +typedef int16_t     s16; +typedef int32_t     s32; +typedef int64_t     s64;  #endif // TYPES_H  |