diff options
author | Dan Albert <danalbert@google.com> | 2015-02-18 00:18:25 -0800 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2015-02-18 00:21:16 -0800 |
commit | 818fb4b448a44ef9f1db85f66415fde4b7a96aa6 (patch) | |
tree | 869fdc404f5ebbdcabdef42f23cefd8173779178 /adb/adb.h | |
parent | f96c15000f849d4c3fef08f0145c61a4862c3833 (diff) | |
download | system_core-818fb4b448a44ef9f1db85f66415fde4b7a96aa6.zip system_core-818fb4b448a44ef9f1db85f66415fde4b7a96aa6.tar.gz system_core-818fb4b448a44ef9f1db85f66415fde4b7a96aa6.tar.bz2 |
Add extern "C" to all the adb headers.
Change-Id: Iaefa3e18d6ee2e065eb97271a796613b2a8e7d6e
Diffstat (limited to 'adb/adb.h')
-rw-r--r-- | adb/adb.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |