summaryrefslogtreecommitdiffstats
path: root/minadbd/utils.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/utils.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/utils.h')
-rw-r--r--minadbd/utils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/minadbd/utils.h b/minadbd/utils.h
index f70ecd24d..e833820ab 100644
--- a/minadbd/utils.h
+++ b/minadbd/utils.h
@@ -16,6 +16,10 @@
#ifndef _ADB_UTILS_H
#define _ADB_UTILS_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* bounded buffer functions */
/* all these functions are used to append data to a bounded buffer.
@@ -65,4 +69,8 @@ char* buff_add (char* buff, char* buffEnd, const char* format, ... );
#define BUFF_DECL(_buff,_cursor,_end,_size) \
char _buff[_size], *_cursor=_buff, *_end = _cursor + (_size)
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _ADB_UTILS_H */