diff options
author | Nicolas Norvez <norvez@chromium.org> | 2018-11-15 14:17:29 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-11-16 19:50:45 -0800 |
commit | 3d4652613c6d2beea8e0dd90f12612fad8eec4d8 (patch) | |
tree | 77402ca8575c24ce999836f6465ce61fd6d7129d /util | |
parent | da4d64502178778db56fda6419fd9cf2dc9f6df2 (diff) | |
download | chrome-ec-3d4652613c6d2beea8e0dd90f12612fad8eec4d8.tar.gz |
headers: make EC commands headers C++-friendly
- wrap headers in 'extern "C"'
- use relative path to #include
BRANCH=None
BUG=chromium:889250
TEST=make buildall -j
TEST=emerge-nocturne ec-utils
Change-Id: I67d8ba88edf77f72bd54500eff169537ffb6257f
Signed-off-by: Nicolas Norvez <norvez@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1338599
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Diffstat (limited to 'util')
-rw-r--r-- | util/cros_ec_dev.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/util/cros_ec_dev.h b/util/cros_ec_dev.h index 7ff87aed9a..85132a8051 100644 --- a/util/cros_ec_dev.h +++ b/util/cros_ec_dev.h @@ -8,7 +8,11 @@ #include <linux/ioctl.h> #include <linux/types.h> -#include "include/ec_commands.h" +#include "ec_commands.h" + +#ifdef __cplusplus +extern "C" { +#endif #define CROS_EC_DEV_NAME "cros_ec" #define CROS_EC_DEV_VERSION "1.0.0" @@ -87,4 +91,8 @@ struct cros_ec_readmem_v2 { struct cros_ec_readmem_v2) #define CROS_EC_DEV_IOCEVENTMASK_V2 _IO(CROS_EC_DEV_IOC_V2, 2) +#ifdef __cplusplus +} +#endif + #endif /* __UTIL_CROS_EC_DEV_H */ |