summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBill Fumerola <billf@FreeBSD.org>2001-03-10 12:05:55 +0000
committerBill Fumerola <billf@FreeBSD.org>2001-03-10 12:05:55 +0000
commit360b348374d9c64d943a6801476aae9b4148749a (patch)
tree0b8fb439e5e931b5f5ca06e2da70b6d0c23d1ae8 /sys
parentd6511a3c8dd3113eb9a37e85469905bfe87da6d9 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/cdefs.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h
index 9ce51a800b58..76926c317bff 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_ */