magic.h: DLONG_PREFIX add other Linux 64bit ifdefs

This commit is contained in:
Darryl L. Miles 2025-10-03 22:05:39 +01:00 committed by R. Timothy Edwards
parent 55931e8811
commit 9c5cf1a567
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ ERROR: Cannot compile without knowing the size of a pointer. See utils/magic.h
typedef int64_t dlong; typedef int64_t dlong;
#define DLONG_MAX INT64_MAX #define DLONG_MAX INT64_MAX
#define DLONG_MIN INT64_MIN #define DLONG_MIN INT64_MIN
#if (defined(__x86_64__) && !defined(_WIN64)) #if ((defined(__x86_64__) || defined(__aarch64__) || defined(__ppc64__) || defined(__riscv64__) || defined(__arm64__)) && !defined(_WIN64))
/* gcc x86_64 defines int64_t as 'long int' on LP64 */ /* gcc x86_64 defines int64_t as 'long int' on LP64 */
#define DLONG_PREFIX "l" #define DLONG_PREFIX "l"
#else #else