Use non-fixed-width types in integer identity_traits definitions
In some situations (e.g. 32-bit Linux), "intptr_t" is defined as "int", which is equivalent to "int32_t", leading to issues with duplicate definitions. In other situations with GCC, "intptr_t" is "long", which isn't covered by any intNN_t types. Also, definitions for "long" already had to be added on Windows, because no fixed-width types in MSVC are equivalent to "long". Switching to non-fixed-width types should hopefully cover all of these situations. If this doesn't cover any integer types that we need, it will be caught quickly, e.g. by references to integer_traits<T> in LuaWrapper.cpp.develop
parent
298d16238e
commit
e22b3b1de7
Loading…
Reference in New Issue