summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorPeter Johnson <peter@tortall.net>2003-06-07 20:48:40 +0000
committerPeter Johnson <peter@tortall.net>2003-06-07 20:48:40 +0000
commitcc3f9486f3d20902e79470bb1366617f23d7fc13 (patch)
tree2237cc6bbe5010444752de10c09155ba62e8bec9 /util.h
parentf7be0f0fd7bcd0a39bc63b06ad6fa797a6ac599f (diff)
downloadyasm-cc3f9486f3d20902e79470bb1366617f23d7fc13.tar.gz
Simplify RCSID() definition.
svn path=/trunk/yasm/; revision=971
Diffstat (limited to 'util.h')
-rw-r--r--util.h12
1 files 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