For the next time, perhaps add this:
`#ifndef ULONG_MAX
#warning ULONG_MAX is not defined!
#endif`