summaryrefslogtreecommitdiffstats
path: root/minadbd/sysdeps.h
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-02-19 00:04:29 +0100
committerAndroid Git Automerger <android-git-automerger@android.com>2015-02-19 00:04:29 +0100
commite1119d5e92bc186de797d64a5c4ff8cc7a8f3c74 (patch)
treebd37874110062036781167499a93c0d2e178b511 /minadbd/sysdeps.h
parentInitialize stashbase even stash_max_blocks = 0 (diff)
parentam 37e933a7: Merge "Add extern "C" to all the headers." (diff)
downloadandroid_bootable_recovery-e1119d5e92bc186de797d64a5c4ff8cc7a8f3c74.tar
android_bootable_recovery-e1119d5e92bc186de797d64a5c4ff8cc7a8f3c74.tar.gz
android_bootable_recovery-e1119d5e92bc186de797d64a5c4ff8cc7a8f3c74.tar.bz2
android_bootable_recovery-e1119d5e92bc186de797d64a5c4ff8cc7a8f3c74.tar.lz
android_bootable_recovery-e1119d5e92bc186de797d64a5c4ff8cc7a8f3c74.tar.xz
android_bootable_recovery-e1119d5e92bc186de797d64a5c4ff8cc7a8f3c74.tar.zst
android_bootable_recovery-e1119d5e92bc186de797d64a5c4ff8cc7a8f3c74.zip
Diffstat (limited to 'minadbd/sysdeps.h')
-rw-r--r--minadbd/sysdeps.h12
1 files changed, 12 insertions, 0 deletions
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 <errno.h>
#include <ctype.h>
+#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 */