diff options
author | Mike Frysinger <vapier@chromium.org> | 2018-09-01 17:29:18 -0400 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-09-04 21:04:01 -0700 |
commit | 483fcf08acb9ad9bbedbb5f980314144260d5da4 (patch) | |
tree | cc44505da08c7a21ec675001bead117181658071 /host | |
parent | b7a007a22971e3a257b40844d4f685875ee56d5e (diff) | |
download | vboot-483fcf08acb9ad9bbedbb5f980314144260d5da4.tar.gz |
add extern C markers to installed headers
Some of the headers have extern C markings already, so add to the
rest of the installed files so users don't have to.
BUG=chromium:878440
TEST=build passes
BRANCH=none
Change-Id: I3edf56ca2235269803049207806a9f7eb4c664f2
Reviewed-on: https://chromium-review.googlesource.com/1201042
Commit-Ready: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'host')
-rw-r--r-- | host/include/cgpt_params.h | 9 | ||||
-rw-r--r-- | host/include/openssl_compat.h | 8 | ||||
-rw-r--r-- | host/include/vboot_host.h | 7 |
3 files changed, 24 insertions, 0 deletions
diff --git a/host/include/cgpt_params.h b/host/include/cgpt_params.h index 5bd1f76a..ffd071a2 100644 --- a/host/include/cgpt_params.h +++ b/host/include/cgpt_params.h @@ -5,10 +5,15 @@ #ifndef VBOOT_REFERENCE_CGPT_CGPT_PARAMS_H_ #define VBOOT_REFERENCE_CGPT_CGPT_PARAMS_H_ + #include <stdint.h> #include "gpt.h" +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + enum { CGPT_OK = 0, CGPT_FAILED, @@ -128,4 +133,8 @@ typedef struct CgptLegacyParams { int mode; } CgptLegacyParams; +#ifdef __cplusplus +} +#endif /* __cplusplus */ + #endif /* VBOOT_REFERENCE_CGPT_CGPT_PARAMS_H_ */ diff --git a/host/include/openssl_compat.h b/host/include/openssl_compat.h index 7771f32a..35bb250b 100644 --- a/host/include/openssl_compat.h +++ b/host/include/openssl_compat.h @@ -6,6 +6,10 @@ #ifndef VBOOT_REFERENCE_OPENSSL_COMPAT_H_ #define VBOOT_REFERENCE_OPENSSL_COMPAT_H_ +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + #include <openssl/rsa.h> #if OPENSSL_VERSION_NUMBER < 0x10100000L @@ -23,4 +27,8 @@ static inline void RSA_get0_key(const RSA *rsa, const BIGNUM **n, #endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */ +#ifdef __cplusplus +} +#endif /* __cplusplus */ + #endif /* VBOOT_REFERENCE_OPENSSL_COMPAT_H_ */ diff --git a/host/include/vboot_host.h b/host/include/vboot_host.h index cb0d0f3c..a8ad3154 100644 --- a/host/include/vboot_host.h +++ b/host/include/vboot_host.h @@ -16,6 +16,10 @@ #include "cgpt_params.h" +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + /* partition table manipulation */ int CgptCreate(CgptCreateParams *params); int CgptAdd(CgptAddParams *params); @@ -68,5 +72,8 @@ char *FindKernelConfig(const char *filename, int ExtractVmlinuz(void *kpart_data, size_t kpart_size, void **vmlinuz_out, size_t *vmlinuz_size); +#ifdef __cplusplus +} +#endif /* __cplusplus */ #endif /* VBOOT_HOST_H_ */ |