X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/b34d73171792a089e2fc3728990deae186578c83..a0adf07cf083377da3be8ac335cb4ff5242bbac0:/src/unexelf.c diff --git a/src/unexelf.c b/src/unexelf.c index 1715c3670c..d3659404f9 100644 --- a/src/unexelf.c +++ b/src/unexelf.c @@ -1,5 +1,5 @@ -/* Copyright (C) 1985-1988, 1990, 1992, 1999-2011 - Free Software Foundation, Inc. +/* Copyright (C) 1985-1988, 1990, 1992, 1999-2013 Free Software + Foundation, Inc. This file is part of GNU Emacs. @@ -461,7 +461,7 @@ typedef struct { /* * NetBSD does not have normal-looking user-land ELF support. */ -# if defined __alpha__ || defined __sparc_v9__ +# if defined __alpha__ || defined __sparc_v9__ || defined _LP64 # define ELFSIZE 64 # else # define ELFSIZE 32 @@ -506,15 +506,13 @@ typedef struct { #endif #ifndef ElfW -# ifdef __STDC__ -# define ElfBitsW(bits, type) Elf##bits##_##type -# else -# define ElfBitsW(bits, type) Elf/**/bits/**/_/**/type -# endif -# ifdef _LP64 -# define ELFSIZE 64 -# else -# define ELFSIZE 32 +# define ElfBitsW(bits, type) Elf##bits##_##type +# ifndef ELFSIZE +# ifdef _LP64 +# define ELFSIZE 64 +# else +# define ELFSIZE 32 +# endif # endif /* This macro expands `bits' before invoking ElfBitsW. */ # define ElfExpandBitsW(bits, type) ElfBitsW (bits, type)