How to resolve typedef conflict in APIs?

Started by
11 comments, last by Khatharr 8 years, 5 months ago

Both ways are legal in the context of the C and C++ standards. That's precisely the reason why using your own typedefs (unless they point to standard fixed width types like uint32_t) is a really bad idea. The compiler of the OP detected that problem (long and int are distinct types, just as they should be!) and made the code more portable in the process.

Advertisement

Thanks for all the answers. I've talked to the engine programmer and he's making the necessary changes to the engine typedefs.

http://en.cppreference.com/w/cpp/header/cstdint

void hurrrrrrrr() {__asm sub [ebp+4],5;}

There are ten kinds of people in this world: those who understand binary and those who don't.

This topic is closed to new replies.

Advertisement