You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Code/Legacy/CrySystem/XML
Chris Burel 72cd282ad2
Avoid redefining `PRI` macros on Linux (#4055)
* Avoid redefining `PRI` macros on Linux

The fixed width 64-bit integer types are defined differently per platform.
Some platforms define it as "long", others define it as "long long". For
consistency, `AZ::u64` or `AZ::s64` is always defined to "long long".
However, this causes problems for formatting those types, because on
platforms where `uint64_t` is a `long`, `PRIu64` gives the wrong format
string for `AZ::u64`. Previously this was fixed by redefining the `PRI`
macros so that they work for `AZ::u64`, but that breaks the ability to
format `uint64_t`.

We could add an AZ-specific version of the `PRI` macros for 64-bit integer
types, but we don't really need to, since they are `long long` on every
platform we support.

 * Use `%ll` for `AZ::u64`
 * Use `PRIu64` for `uint64_t`

Signed-off-by: Chris Burel <burelc@amazon.com>

* Avoid redefining `PRI` macros in CryCommon

Signed-off-by: Chris Burel <burelc@amazon.com>
4 years ago
..
Expat SPEC-7531 Change Code/CryEngine to Code/Legacy (#1634) 5 years ago
CMakeLists.txt Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
SerializeXMLReader.cpp Legacy code cleanup - part 3 (#3903) 4 years ago
SerializeXMLReader.h Legacy code cleanup - part 3 (#3903) 4 years ago
SerializeXMLWriter.cpp Legacy code cleanup - part 3 (#3903) 4 years ago
SerializeXMLWriter.h Legacy code cleanup - part 3 (#3903) 4 years ago
XMLBinaryNode.cpp Avoid redefining `PRI` macros on Linux (#4055) 4 years ago
XMLBinaryNode.h Legacy code cleanup - part 3 (#3903) 4 years ago
XMLBinaryReader.cpp Merge branch 'development' into cmake/SPEC-7182 4 years ago
XMLBinaryReader.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
XMLBinaryWriter.cpp Legacy code cleanup - part 3 (#3903) 4 years ago
XMLBinaryWriter.h Legacy code cleanup - part 3 (#3903) 4 years ago
XmlUtils.cpp Legacy code cleanup - part 3 (#3903) 4 years ago
XmlUtils.h Legacy code cleanup - part 3 (#3903) 4 years ago
crysystem_xmlbinary_files.cmake Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
xml.cpp Avoid redefining `PRI` macros on Linux (#4055) 4 years ago
xml.h Legacy code cleanup - part 3 (#3903) 4 years ago