diff mbox series

[1/4] arch: add missing predfines: __amd64 & __amd64__

Message ID 20191127022351.68902-2-luc.vanoostenryck@gmail.com (mailing list archive)
State Mainlined, archived
Headers show
Series More arch specific fixes | expand

Commit Message

Luc Van Oostenryck Nov. 27, 2019, 2:23 a.m. UTC
These seems to be defined whenever s__x86_64 & __x86_64__
are defined.

So, do the same here too.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 lib.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Ramsay Jones Nov. 27, 2019, 4:56 p.m. UTC | #1
On 27/11/2019 02:23, Luc Van Oostenryck wrote:
> These seems to be defined whenever s__x86_64 & __x86_64__

s/seems/seem/
s/s__x86_64 & __x86_64__/the __x86_64 and __x86_64__ macros/

ATB,
Ramsay Jones

> are defined.
> 
> So, do the same here too.
> 
> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
> ---
>  lib.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/lib.c b/lib.c
> index 45402e51f..28ca49c7c 100644
> --- a/lib.c
> +++ b/lib.c
> @@ -1609,6 +1609,8 @@ static void predefined_macros(void)
>  		if (arch_m64 != ARCH_LP32) {
>  			predefine("__x86_64__", 1, "1");
>  			predefine("__x86_64", 1, "1");
> +			predefine("__amd64__", 1, "1");
> +			predefine("__amd64", 1, "1");
>  			break;
>  		}
>  		/* fall-through */
>
diff mbox series

Patch

diff --git a/lib.c b/lib.c
index 45402e51f..28ca49c7c 100644
--- a/lib.c
+++ b/lib.c
@@ -1609,6 +1609,8 @@  static void predefined_macros(void)
 		if (arch_m64 != ARCH_LP32) {
 			predefine("__x86_64__", 1, "1");
 			predefine("__x86_64", 1, "1");
+			predefine("__amd64__", 1, "1");
+			predefine("__amd64", 1, "1");
 			break;
 		}
 		/* fall-through */