src: fix compilation on older compilers; update tests

This commit is contained in:
Markus F.X.J. Oberhumer
2024-05-27 20:59:12 +02:00
parent 9f4d18baac
commit b0ce072370
4 changed files with 628 additions and 294 deletions
+3 -3
View File
@@ -525,6 +525,9 @@ void show_sysinfo(const char *options_var) {
cf_print("__cplusplus", "%lld", __cplusplus + 0, 3);
#if defined(_MSVC_LANG)
cf_print("_MSVC_LANG", "%lld", _MSVC_LANG + 0, 3);
#endif
#if defined(upx_is_constant_evaluated)
cf_print("upx_is_constant_evaluated", "%lld", 1, 3);
#endif
// compiler
#if defined(ACC_CC_CLANG)
@@ -591,9 +594,6 @@ void show_sysinfo(const char *options_var) {
cf_print("__GLIBC_MINOR__", "%lld", __GLIBC_MINOR__ + 0);
#endif
// misc compilation options
#if defined(upx_is_constant_evaluated)
cf_print("upx_is_constant_evaluated", "%lld", 1, 3);
#endif
#if defined(UPX_CONFIG_DISABLE_WSTRICT)
cf_print("UPX_CONFIG_DISABLE_WSTRICT", "%lld", UPX_CONFIG_DISABLE_WSTRICT + 0, 3);
#endif