From 84e7bd4a455f228adb4b7d882965c8786fbe65ca Mon Sep 17 00:00:00 2001 From: Luc Van Oostenryck Date: Tue, 7 Feb 2017 21:04:22 +0100 Subject: [PATCH] define __LP64__ & _LP64 if arch_m64 is enabled They're part of GCC's common predefined macros and some code & header files depend on them. Signed-off-by: Luc Van Oostenryck Signed-off-by: Christopher Li --- lib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib.c b/lib.c index a2820237..a801d8c1 100644 --- a/lib.c +++ b/lib.c @@ -405,6 +405,8 @@ static void handle_arch_m64_finalize(void) pointer_alignment = 8; size_t_ctype = &ulong_ctype; ssize_t_ctype = &long_ctype; + add_pre_buffer("#weak_define __LP64__ 1\n"); + add_pre_buffer("#weak_define _LP64 1\n"); #ifdef __x86_64__ add_pre_buffer("#weak_define __x86_64__ 1\n"); #endif -- 2.11.4.GIT