I am trying to understand, what would be the best way to define BYTE, WORD and DWORD macros, which are mentioned in answers of this qu
BYTE
WORD
DWORD
This is a portable solution:
#include typedef uint32_t DWORD; // DWORD = unsigned 32 bit value typedef uint16_t WORD; // WORD = unsigned 16 bit value typedef uint8_t BYTE; // BYTE = unsigned 8 bit value