From 674917f2bca65bcdf8b4e48dd9101436614e8b67 Mon Sep 17 00:00:00 2001 From: Tim Eves Date: Tue, 26 Feb 2019 11:40:44 +0700 Subject: [PATCH] Use more generic preprocessor macro 64bit __x86_64__ is only for Intel __LP64__ and _LP64 are for any arch that has 64bit `long int` and pointers, and 32bit `int` same as Intel. --- common/engine/keyboardprocessor/src/kmx/kmx_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/engine/keyboardprocessor/src/kmx/kmx_base.h b/common/engine/keyboardprocessor/src/kmx/kmx_base.h index a47ba53621..fee31403ac 100644 --- a/common/engine/keyboardprocessor/src/kmx/kmx_base.h +++ b/common/engine/keyboardprocessor/src/kmx/kmx_base.h @@ -10,7 +10,7 @@ #define strncasecmp _strnicmp #endif -#if __x86_64__ +#if defined(__LP64__) || defined(_LP64) /* 64-bit, g++ */ #define KMX_64BIT #endif