diff options
author | dillon <dillon@FreeBSD.org> | 2001-09-15 03:41:00 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2001-09-15 03:41:00 +0000 |
commit | db0017d0e3593779501a8a9b772824247d4dc23c (patch) | |
tree | 0f64c2d4575d504f752e52d2cfc091b1064bde45 | |
parent | e6b17ee5c43e0360bbc930b8de517430b66e07d2 (diff) | |
download | FreeBSD-src-db0017d0e3593779501a8a9b772824247d4dc23c.zip FreeBSD-src-db0017d0e3593779501a8a9b772824247d4dc23c.tar.gz |
Add __FBSDID() macro to support rcs identifiers in source files.
-rw-r--r-- | sys/sys/cdefs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index ca68d5c..492b234 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -211,6 +211,14 @@ #define __RCSID(s) __IDSTRING(__CONCAT(__rcsid_,__LINE__),s) #endif +#ifndef __FBSDID +#if !defined(lint) && !defined(STRIP_FBSDID) +#define __FBSDID(s) __IDSTRING(__CONCAT(__rcsid_,__LINE__),s) +#else +#define __FBSDID(s) +#endif +#endif + #ifndef __RCSID_SOURCE #define __RCSID_SOURCE(s) __IDSTRING(__CONCAT(__rcsid_source_,__LINE__),s) #endif |