You get an error because you picked names for your typedef
s that collide with names of types from the <stdint.h>
header.
Since you are looking for types that are already defined in stdint.h
, you might as well include it on platforms that provide this header.