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/sysdeps.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'minadbd/sysdeps.h') diff --git a/minadbd/sysdeps.h b/minadbd/sysdeps.h index 800ddb753..3edaef472 100644 --- a/minadbd/sysdeps.h +++ b/minadbd/sysdeps.h @@ -36,6 +36,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + #define OS_PATH_SEPARATOR '\\' #define OS_PATH_SEPARATOR_STR "\\" @@ -254,6 +258,10 @@ static __inline__ int adb_is_absolute_host_path( const char* path ) return isalpha(path[0]) && path[1] == ':' && path[2] == '\\'; } +#ifdef __cplusplus +} +#endif + #else /* !_WIN32 a.k.a. Unix */ #include "fdevent.h" @@ -491,4 +499,8 @@ static __inline__ int adb_is_absolute_host_path( const char* path ) #endif /* !_WIN32 */ +#ifdef __cplusplus +} +#endif + #endif /* _ADB_SYSDEPS_H */ -- cgit v1.2.3