Tom Hughes has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/63001 )
Change subject: programmer: Use C linkage when compiling with C++ ......................................................................
programmer: Use C linkage when compiling with C++
BUG=b:144959033 TEST=emerge-hatch flashrom
Change-Id: I7e12ead58dee07313d756f1afcc687ba12b6392b Signed-off-by: Tom Hughes tomhughes@chromium.org --- M programmer.h 1 file changed, 7 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/01/63001/1
diff --git a/programmer.h b/programmer.h index c79422c..f01519f 100644 --- a/programmer.h +++ b/programmer.h @@ -20,6 +20,10 @@ #ifndef __PROGRAMMER_H__ #define __PROGRAMMER_H__ 1
+#ifdef __cplusplus +extern "C" { +#endif + #include <stdint.h>
#include "flash.h" /* for chipaddr and flashctx */ @@ -509,5 +513,8 @@ struct libusb_device_handle *usb_dev_get_by_vid_pid_number( struct libusb_context *usb_ctx, uint16_t vid, uint16_t pid, unsigned int num);
+#ifdef __cplusplus +} +#endif
#endif /* !__PROGRAMMER_H__ */