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/Tools
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
..
AWSNativeSDKInit Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Android/ProjectBuilder Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
AssetBundler Fix unused warnings release (#3677) 4 years ago
AssetProcessor Avoid redefining `PRI` macros on Linux (#4055) 4 years ago
AzTestRunner Fixes for Android 4 years ago
CrashHandler small fix, everything compiling with VS2022 4 years ago
DeltaCataloger Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
GridHub Move undefs of problematic Windows defines to PlatformIncl_Windows.h 4 years ago
ProjectManager Miscellaneous fixes and PAL changes required for restricted platforms. (#4021) 4 years ago
PythonBindingsExample Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
RemoteConsole Adds a verification response for the remote console connecting 4 years ago
SceneAPI Build time reduction: AzStdOnDemandReflection (#3111) 4 years ago
SerializeContextTools Windows and Linux compiling 4 years ago
Standalone Fixes for release builds for unused variable warnings (#4000) 4 years ago
TestImpactFramework Add AWSI automation tests to a new test suite and pipe (#3913) 4 years ago
CMakeLists.txt Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago