Closed doragasu closed 8 years ago
That change was basically made for better stdint compatibility O_o, see this issue : https://github.com/Stephane-D/SGDK/pull/45
The #if !defined(uint8_t) && !defined(__int8_t_defined)
portion should avoid the conflict no ?
So it looks that pull request is not safe if you want to use the standard stdint include ?
Hum... I'm using SGDK on Linux built by the script by Kubilis. I built the toolchain 2 days ago, maybe the script didn't build the latest git version. I'll check if that code is present inside types.h
I have checked and the code is there. Once I saw the code, I immediately understood that this workaround only works if you make sure you include stdint.h before sgdk related stuff.
I reversed the include order and can confirm that now it builds without problems.
I'm closing the issue, but I suppose it would be better including stdint.h inside SGDK, instead of redefining the types, to avoid these problems.
Thanks for the support!
You're welcome :)
I usually use data types provided by stdint.h, such as uint16_t. But including this file on projects using also SGDK, causes type redefinition problems:
I think conflicting with standard header files should be avoided. Could this be fixed?