In order to use uintptr_t, it needs to include <stdint.h>. In my case, that is vital to run this program.