From cc3f9486f3d20902e79470bb1366617f23d7fc13 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sat, 7 Jun 2003 20:48:40 +0000 Subject: [PATCH] Simplify RCSID() definition. svn path=/trunk/yasm/; revision=971 --- util.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/util.h b/util.h index 76f10d5f..b1ac6770 100644 --- a/util.h +++ b/util.h @@ -112,16 +112,10 @@ #ifdef __RCSID # define RCSID(s) __RCSID(s) +#elif defined(__GNUC__) && defined(__ELF__) +# define RCSID(s) __asm__(".ident\t\"" s "\"") #else -# ifdef __GNUC__ -# ifdef __ELF__ -# define RCSID(s) __asm__(".ident\t\"" s "\"") -# else -# define RCSID(s) static const char rcsid[] = s -# endif -# else -# define RCSID(s) static const char rcsid[] = s -# endif +# define RCSID(s) static const char rcsid[] = s #endif #ifdef WITH_DMALLOC -- 2.40.0