diff options
| author | Ulrich Drepper <[email protected]> | 2006-06-04 18:33:56 +0000 |
|---|---|---|
| committer | Ulrich Drepper <[email protected]> | 2006-06-04 18:33:56 +0000 |
| commit | bdb29c0b5613ecda012edfd291765f17da3939da (patch) | |
| tree | fb8a1debeaa8b67b08a8caf24e8c9568a7910e37 /libelf/libelfP.h | |
| parent | 8c56fe3b2c753234beb6f58a81c8b96f008226ef (diff) | |
merge of 74ebb3c081458a7d19c744b155c767262efc47cb
and cb87c403367a928f441c3dab11f1ed989884a7f7
Diffstat (limited to 'libelf/libelfP.h')
| -rw-r--r-- | libelf/libelfP.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/libelf/libelfP.h b/libelf/libelfP.h index ed6b5f7f..54158aeb 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 <[email protected]>, 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 */ |
