From 1760096dbe0dadb06a828d48379a06c7f73b2534 Mon Sep 17 00:00:00 2001 From: Craig Rodrigues Date: Wed, 31 Aug 2005 14:57:39 +0000 Subject: [PATCH] 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 MFC after: 1 day --- lib/libdevinfo/devinfo.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/libdevinfo/devinfo.h b/lib/libdevinfo/devinfo.h index f31058a2353b..91930a44008c 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 #include @@ -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 */