D
DanielJohnson
I have seen many legacy code use uint8_t or uint16_t to override the
default compiler setting of an integer's length.
I am using gcc on Linux and a sizeof(int) gives me 4. I want the
ability to define an 8, 16 or 32 bit integer.
I tried using uint8_t but the gcc doesn't like it. Do I need to modify
any setting or declare typdefes.
Please guide me. Your answer is greatly appreciated.
Thanks,
default compiler setting of an integer's length.
I am using gcc on Linux and a sizeof(int) gives me 4. I want the
ability to define an 8, 16 or 32 bit integer.
I tried using uint8_t but the gcc doesn't like it. Do I need to modify
any setting or declare typdefes.
Please guide me. Your answer is greatly appreciated.
Thanks,