What is the OSX, C equivalent for uint32 and uint64?

c, macos, xcode

Solution

You can use `uint32_t` and `uint64_t` by importing `stdint.h`.

Problem

I imagine this is a question that has been asked a thousand times but I can't find a straight answer. I'm trying to port a very short, C function (initially written for Windows) to OSX, using XCode. I've created an XCode, Terminal application project and I've copied and pasted the code into the project. XCode is giving me a bunch of errors telling me that the type `uint32` and `uint64` are unknown types. What are the equivalent value types in OSX?

Original source