diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2005-08-31 14:57:39 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2005-08-31 14:57:39 +0000 |
commit | caed8dde2c0c285b4827869dc3e2ff2a58634171 (patch) | |
tree | 96d40ce8c34b4b58d0e9123365f42fac4a4b6192 /lib | |
parent | a8babb6361f498ad4ec130129442557417062299 (diff) | |
download | FreeBSD-src-caed8dde2c0c285b4827869dc3e2ff2a58634171.zip FreeBSD-src-caed8dde2c0c285b4827869dc3e2ff2a58634171.tar.gz |
Add __BEGIN_DECLS/__END_DECLS so that this header can be included in C++
programs. Also, add include guards.
PR: bin/44277
Submitted by: Alex Zepeda <freebsd at blarf dot homeip dot net>
MFC after: 1 day
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libdevinfo/devinfo.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libdevinfo/devinfo.h b/lib/libdevinfo/devinfo.h index f31058a..91930a4 100644 --- a/lib/libdevinfo/devinfo.h +++ b/lib/libdevinfo/devinfo.h @@ -27,6 +27,9 @@ * $FreeBSD$ */ +#ifndef _DEVINFO_H_INCLUDED +#define _DEVINFO_H_INCLUDED + #include <sys/cdefs.h> #include <sys/_types.h> @@ -77,6 +80,8 @@ struct devinfo_res { /* XXX add flags */ }; +__BEGIN_DECLS + /* * Acquire a coherent copy of the kernel's device and resource tables. * This must return success (zero) before any other interfaces will @@ -136,3 +141,7 @@ extern int extern int devinfo_foreach_rman(int (* fn)(struct devinfo_rman *rman, void *arg), void *arg); + +__END_DECLS + +#endif /* ! _DEVINFO_H_INCLUDED */ |