]> granicus.if.org Git - yasm/commitdiff
Simplify RCSID() definition.
authorPeter Johnson <peter@tortall.net>
Sat, 7 Jun 2003 20:48:40 +0000 (20:48 -0000)
committerPeter Johnson <peter@tortall.net>
Sat, 7 Jun 2003 20:48:40 +0000 (20:48 -0000)
svn path=/trunk/yasm/; revision=971

util.h

diff --git a/util.h b/util.h
index 76f10d5fb9467df44d1334184b2ae92662d1c952..b1ac67709fc22323681f7fcf1e9bb0536b8fe1d2 100644 (file)
--- a/util.h
+++ b/util.h
 
 #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