From 818fb4b448a44ef9f1db85f66415fde4b7a96aa6 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Wed, 18 Feb 2015 00:18:25 -0800 Subject: Add extern "C" to all the adb headers. Change-Id: Iaefa3e18d6ee2e065eb97271a796613b2a8e7d6e --- adb/adb.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'adb/adb.h') diff --git a/adb/adb.h b/adb/adb.h index 6ac4731..600bdd5 100644 --- a/adb/adb.h +++ b/adb/adb.h @@ -23,6 +23,10 @@ #include "fdevent.h" #include "transport.h" /* readx(), writex() */ +#ifdef __cplusplus +extern "C" { +#endif + #define MAX_PAYLOAD 4096 #define A_SYNC 0x434e5953 @@ -420,4 +424,8 @@ typedef enum { 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.1