diff options
author | billf <billf@FreeBSD.org> | 2001-03-10 12:05:55 +0000 |
---|---|---|
committer | billf <billf@FreeBSD.org> | 2001-03-10 12:05:55 +0000 |
commit | e05fe2f2533e64a41c2b101187d67652bb19c036 (patch) | |
tree | 45cd15a8499f7a2dbc87346df25f4f0410ae13fd | |
parent | 3bc6fead11429339af89cf55d0279fc919325a51 (diff) | |
download | FreeBSD-src-e05fe2f2533e64a41c2b101187d67652bb19c036.zip FreeBSD-src-e05fe2f2533e64a41c2b101187d67652bb19c036.tar.gz |
after discovering that the Santa Clara Valley Medical Center actually
has a burn unit and is only 8 miles away...
add __DECONST(), __DEVOLATILE(), and __DEQUALIFY()
-rw-r--r-- | sys/sys/cdefs.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index 9ce51a8..76926c3 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -203,11 +203,23 @@ #endif #ifndef __RCSID_SOURCE -#define __RCSID_SOURCE(s) __IDSTRING(rcsid_source,s) +#define __RCSID_SOURCE(s) __IDSTRING(rcsid_source,s) #endif #ifndef __COPYRIGHT #define __COPYRIGHT(s) __IDSTRING(copyright,s) #endif +#ifndef __DECONST +#define __DECONST(type, var) ((type)(uintptr_t)(const void *)(var)) +#endif + +#ifndef __DEVOLATILE +#define __DEVOLATILE(type, var) ((type)(uintptr_t)(volatile void *)(var)) +#endif + +#ifndef __DEQUALIFY +#define __DEQUALIFY(type, var) ((type)(uintptr_t)(const volatile void *)(var)) +#endif + #endif /* !_SYS_CDEFS_H_ */ |