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/Gems/AudioSystem/Code/Source/Engine
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
..
ATL.cpp Avoid redefining `PRI` macros on Linux (#4055) 4 years ago
ATL.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
ATLAudioObject.cpp Avoid redefining `PRI` macros on Linux (#4055) 4 years ago
ATLAudioObject.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
ATLComponents.cpp more fixes 4 years ago
ATLComponents.h more fixes 4 years ago
ATLEntities.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
ATLEntities.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
ATLUtils.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
ATLUtils.h Deprecate profiler categories based on global enum 4 years ago
AudioInternalInterfaces.h Fixes AZ_PROFILE markers that failed release build (#3364) 4 years ago
AudioProxy.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
AudioProxy.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
AudioRequests.cpp [redcode/crythread-2nd-pass] replaced remaining CryInterlocked* usage with equivalent AZStd version 4 years ago
AudioSystem.cpp Merge branch 'development' into cmake/linux_fix_warn_unused 4 years ago
AudioSystem.h Add AZ_BUDGET_DEFINE/AZ_BUDGET_DECLARE and remove driller 4 years ago
FileCacheManager.cpp Fixes clang cases 4 years ago
FileCacheManager.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
SoundCVars.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
SoundCVars.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago