Add __FBSDID() macro to support rcs identifiers in source files.

This commit is contained in:
Matthew Dillon 2001-09-15 03:41:00 +00:00
parent 6a903a9b76
commit 4e4bb7561a

View File

@ -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