Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jul 2022 13:21:42 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 27f3d9f70db3 - stable/13 - libvmm: add __BEGIN_DECLS/__END_DECLS for linking with c++ binaries
Message-ID:  <202207181321.26IDLgY9031909@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=27f3d9f70db3a7dabc76e6420144e0a7a80e9e1a

commit 27f3d9f70db3a7dabc76e6420144e0a7a80e9e1a
Author:     Vitaliy Gusev <gusev.vitaliy@gmail.com>
AuthorDate: 2022-07-11 19:25:43 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-07-18 13:07:25 +0000

    libvmm: add __BEGIN_DECLS/__END_DECLS for linking with c++ binaries
    
    Reviewed by:    jhb, markj, imp
    Sponsored by:   vStack
    
    (cherry picked from commit 1228a047aa653e7e9067bdcff4a9a62657df2c15)
---
 lib/libvmmapi/vmmapi.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/libvmmapi/vmmapi.h b/lib/libvmmapi/vmmapi.h
index d2ee9cae127b..840c78bcf9f7 100644
--- a/lib/libvmmapi/vmmapi.h
+++ b/lib/libvmmapi/vmmapi.h
@@ -31,6 +31,7 @@
 #ifndef _VMMAPI_H_
 #define	_VMMAPI_H_
 
+#include <sys/cdefs.h>
 #include <sys/param.h>
 #include <sys/cpuset.h>
 #include <machine/vmm_dev.h>
@@ -76,6 +77,7 @@ enum {
 	VM_PCIROM,
 };
 
+__BEGIN_DECLS
 /*
  * Get the length and name of the memory segment identified by 'segid'.
  * Note that system memory segments are identified with a nul name.
@@ -275,5 +277,6 @@ struct checkpoint_op {
 
 int	vm_snapshot_req(struct vm_snapshot_meta *meta);
 int	vm_restore_time(struct vmctx *ctx);
+__END_DECLS
 
 #endif	/* _VMMAPI_H_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207181321.26IDLgY9031909>