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/utils.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'minadbd/utils.h') 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 */ -- cgit v1.2.3