summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ. Richard Barnette <jrbarnette@chromium.org>2013-10-24 16:04:12 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-10-25 01:33:45 +0000
commitfe2c1a231e3893dc3d7ac314e11b04a18c6948e7 (patch)
treebc0efa7fcbd4e589af8c9dc8027e6ba188c0530d
parent92cbd5d214e0f2f9a3d52db48dcdaaceb57993d4 (diff)
downloadvboot-stabilize-4886.B.tar.gz
Allow <vboot/crossystem.h> to be usable in C++ code.stabilize-4886.B
BUG=None TEST=build update_engine with a change that uses the header. BRANCH=none Change-Id: Icbfe9be615a4f7f4078a0a0cde64324908dea2a7 Reviewed-on: https://chromium-review.googlesource.com/174428 Commit-Queue: Richard Barnette <jrbarnette@chromium.org> Tested-by: Richard Barnette <jrbarnette@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org>
-rw-r--r--host/include/crossystem.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/host/include/crossystem.h b/host/include/crossystem.h
index 71acc841..c116b0c2 100644
--- a/host/include/crossystem.h
+++ b/host/include/crossystem.h
@@ -6,6 +6,10 @@
#ifndef VBOOT_REFERENCE_CROSSYSTEM_H_
#define VBOOT_REFERENCE_CROSSYSTEM_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Reads a system property integer.
*
* Returns the property value, or -1 if error. */
@@ -28,4 +32,8 @@ int VbSetSystemPropertyInt(const char* name, int value);
* Returns 0 if success, -1 if error. */
int VbSetSystemPropertyString(const char* name, const char* value);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* VBOOT_REFERENCE__CROSSYSTEM_H_ */