When `<cstdint>` is used, this will be `std::uint32_t`. You need to move the typedef into the `#if` above.