-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
The current reboot.h is not compatible with C++ due to the function name being mangled.
Can I suggest the file is changed as shown in this patch
--- /home/dev/picowota_blink/picowota/picowota_reboot/include/picowota/reboot.h
+++ reboot.h
@@ -11,6 +11,15 @@
#define PICOWOTA_BOOTLOADER_ENTRY_MAGIC 0xb105f00d
+#ifdef __cplusplus
+extern "C" {
+#endif
+
void picowota_reboot(bool to_bootloader);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /* PICOWOTA_REBOOT_H */
Thanks
Bob S.
Metadata
Metadata
Assignees
Labels
No labels