Use extern "C" rather than BEGIN/END_DECLS.
For compatibility with Trusty. I'll probably revert this later after I
find a proper fix for Trusty.
Change-Id: I49b4ae55251398eec2a6633e09bbc468f16a4d14
diff --git a/include/hardware/hw_auth_token.h b/include/hardware/hw_auth_token.h
index ffb72a9..154c1fd 100644
--- a/include/hardware/hw_auth_token.h
+++ b/include/hardware/hw_auth_token.h
@@ -19,7 +19,9 @@
#ifndef ANDROID_HARDWARE_HW_AUTH_TOKEN_H
#define ANDROID_HARDWARE_HW_AUTH_TOKEN_H
-__BEGIN_DECLS
+#ifndef __cplusplus
+extern "C" {
+#endif // __cplusplus
typedef enum {
HW_AUTH_NONE = 0,
@@ -42,6 +44,8 @@
uint8_t hmac[32];
} hw_auth_token_t;
-__END_DECLS
+#ifndef __cplusplus
+} // extern "C"
+#endif // __cplusplus
#endif // ANDROID_HARDWARE_HW_AUTH_TOKEN_H