Never use mysterious crap types over standardized integer types. Every single
#define
in this code needs to go.
#define
in this code needs to go.