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
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
..
LevelSystem Enabling warnings around format security 4 years ago
Platform Various fixes and empty boilerplate files required for restricted platforms. (#3610) 4 years ago
RemoteConsole Legacy cleanup (#3383) 4 years ago
ViewSystem Legacy code cleanup - part 3 (#3903) 4 years ago
XML Avoid redefining `PRI` macros on Linux (#4055) 4 years ago
AZCoreLogSink.h more fixes 4 years ago
AZCrySystemInitLogSink.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
AZCrySystemInitLogSink.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
CMakeLists.txt Various fixes and empty boilerplate files required for restricted platforms. (#3610) 4 years ago
CmdLine.cpp Code/Legacy 4 years ago
CmdLine.h More string fixes 4 years ago
CmdLineArg.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
CmdLineArg.h More string fixes 4 years ago
ConsoleBatchFile.cpp Fix unused warnings release (#3677) 4 years ago
ConsoleBatchFile.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
ConsoleHelpGen.cpp Code/Legacy cleanup 4 years ago
ConsoleHelpGen.h More string fixes 4 years ago
CrySystem_precompiled.h Legacy code cleanup - part 3 (#3903) 4 years ago
DebugCallStack.cpp fixing format strings 4 years ago
DebugCallStack.h More string fixes 4 years ago
DllMain.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Huffman.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Huffman.h Legacy code cleanup - part 3 (#3903) 4 years ago
IDebugCallStack.cpp Merge branch 'development' into cmake/SPEC-7182 4 years ago
IDebugCallStack.h linux fixes 4 years ago
LocalizedStringManager.cpp Legacy code cleanup - part 3 (#3903) 4 years ago
LocalizedStringManager.h Legacy code cleanup - part 3 (#3903) 4 years ago
Log.cpp enabling warn format security and some fixes 4 years ago
Log.h Legacy code cleanup - part 3 (#3903) 4 years ago
SimpleStringPool.h Legacy cleanup, part 2 (#3659) 4 years ago
System.cpp Miscellaneous fixes and PAL changes required for restricted platforms. (#4021) 4 years ago
System.h Legacy code cleanup - part 3 (#3903) 4 years ago
SystemCFG.cpp Add [[maybe_unused]] to some local variables that are only referenced as arguments to CryLogAlways that is not compiled in release. (#3992) 4 years ago
SystemEventDispatcher.cpp Refactor budget definitions as named functions instead of template specializations 4 years ago
SystemEventDispatcher.h [redcode/crythread-2nd-pass] removed CryThread*.h files 4 years ago
SystemInit.cpp Enabling warnings around format security 4 years ago
SystemWin32.cpp Miscellaneous fixes and PAL changes required for restricted platforms. (#4021) 4 years ago
Timer.cpp Fix unused warnings release (#3677) 4 years ago
Timer.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
WindowsErrorReporting.cpp Code/Legacy cleanup 4 years ago
XConsole.cpp Enabling warnings around format security 4 years ago
XConsole.h Legacy code cleanup - part 3 (#3903) 4 years ago
XConsoleVariable.cpp Legacy code cleanup - part 3 (#3903) 4 years ago
XConsoleVariable.h Legacy code cleanup - part 3 (#3903) 4 years ago
crysystem_files.cmake Legacy code cleanup - part 3 (#3903) 4 years ago
crysystem_shared_files.cmake Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago