Add extern C macro for C++ 63/269663/1
authorHyotaek Shim <hyotaek.shim@samsung.com>
Thu, 20 Jan 2022 02:22:06 +0000 (11:22 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Thu, 20 Jan 2022 02:22:06 +0000 (11:22 +0900)
Change-Id: Ic1909914498b99e30565e34f0efe44f2de578e14
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
include/board-internal.h

index d726efa..d094e04 100644 (file)
@@ -1,8 +1,14 @@
 #ifndef __BOARD_INTERNAL_H__
 #define __BOARD_INTERNAL_H__
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 int device_board_get_serial_number(char *buffer, int buffer_max);
 int device_board_get_boot_reason(char *buffer, int len);
 
+#ifdef __cplusplus
+}
+#endif
 #endif
-