From: Ulrich Drepper Date: Sun, 28 May 2006 18:44:59 +0000 (+0000) Subject: No need for non-gcc support. X-Git-Tag: elfutils-0.121~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d4241d16fd31160aa84c3be83e5fafa12e6d968;p=thirdparty%2Felfutils.git No need for non-gcc support. --- diff --git a/libelf/libelfP.h b/libelf/libelfP.h index ed6b5f7f3..54158aeb8 100644 --- a/libelf/libelfP.h +++ b/libelf/libelfP.h @@ -1,5 +1,5 @@ /* Internal interfaces for libelf. - Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005 Red Hat, Inc. + Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006 Red Hat, Inc. This file is part of Red Hat elfutils. Contributed by Ulrich Drepper , 1998. @@ -546,9 +546,8 @@ extern uint32_t __libelf_crc32 (uint32_t crc, unsigned char *buf, size_t len) /* We often have to update a flag iff a value changed. Make this - convenient. None of the parameters must have a side effect. */ -#ifdef __GNUC__ -# define update_if_changed(var, exp, flag) \ + convenient. */ +#define update_if_changed(var, exp, flag) \ do { \ __typeof__ (var) *_var = &(var); \ __typeof__ (exp) _exp = (exp); \ @@ -558,15 +557,5 @@ extern uint32_t __libelf_crc32 (uint32_t crc, unsigned char *buf, size_t len) (flag) |= ELF_F_DIRTY; \ } \ } while (0) -#else -# define update_if_changed(var, exp, flag) \ - do { \ - if ((var) != (exp)) \ - { \ - (var) = (exp); \ - (flag) |= ELF_F_DIRTY; \ - } \ - } while (0) -#endif #endif /* libelfP.h */