git: 1228a047aa65 - main - libvmm: add __BEGIN_DECLS/__END_DECLS for linking with c++ binaries
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 11 Jul 2022 19:58:56 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=1228a047aa653e7e9067bdcff4a9a62657df2c15
commit 1228a047aa653e7e9067bdcff4a9a62657df2c15
Author: Vitaliy Gusev <gusev.vitaliy@gmail.com>
AuthorDate: 2022-07-11 19:25:43 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-07-11 19:58:42 +0000
libvmm: add __BEGIN_DECLS/__END_DECLS for linking with c++ binaries
Reviewed by: jhb, markj, imp
Sponsored by: vStack
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D35719
---
lib/libvmmapi/vmmapi.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/libvmmapi/vmmapi.h b/lib/libvmmapi/vmmapi.h
index 438fd582db0e..8f5186237801 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.h>
@@ -77,6 +78,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.
@@ -264,5 +266,6 @@ void vm_setup_freebsd_gdt(uint64_t *gdtr);
*/
int vm_snapshot_req(struct vm_snapshot_meta *meta);
int vm_restore_time(struct vmctx *ctx);
+__END_DECLS
#endif /* _VMMAPI_H_ */