From: Peter Johnson Date: Sat, 7 Jun 2003 20:48:40 +0000 (-0000) Subject: Simplify RCSID() definition. X-Git-Tag: v0.3.0~6^2~73 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc3f9486f3d20902e79470bb1366617f23d7fc13;p=yasm Simplify RCSID() definition. svn path=/trunk/yasm/; revision=971 --- 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