From d808d2194f7a71309545bfcf111e874fb97bfd6b Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Wed, 18 Feb 2015 10:21:54 -0800 Subject: Add extern "C" to all the headers. Change-Id: Idc249ff1b199b7c455f90092ff2c8a48b539faf4 --- minadbd/adb.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'minadbd/adb.h') diff --git a/minadbd/adb.h b/minadbd/adb.h index 714868f5c..010a36485 100644 --- a/minadbd/adb.h +++ b/minadbd/adb.h @@ -22,6 +22,10 @@ #include "transport.h" /* readx(), writex() */ #include "fdevent.h" +#ifdef __cplusplus +extern "C" { +#endif + #define MAX_PAYLOAD 4096 #define A_SYNC 0x434e5953 @@ -421,4 +425,8 @@ extern int SHELL_EXIT_NOTIFY_FD; int sendfailmsg(int fd, const char *reason); int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s); +#ifdef __cplusplus +} +#endif + #endif -- cgit v1.2.3