summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndres Morales <anmorales@google.com>2015-04-09 11:46:52 -0700
committerAndres Morales <anmorales@google.com>2015-04-09 11:46:52 -0700
commit89dd74cb3e915b468612b5849fcbcea9a8e72b06 (patch)
tree4de9020866ecc02c2caf9c7b4948970b99bbe9c4
parent8e7aa99bb677642820b9581163467c5b8880d839 (diff)
downloadhardware_libhardware-89dd74cb3e915b468612b5849fcbcea9a8e72b06.zip
hardware_libhardware-89dd74cb3e915b468612b5849fcbcea9a8e72b06.tar.gz
hardware_libhardware-89dd74cb3e915b468612b5849fcbcea9a8e72b06.tar.bz2
fix extern C decl
extern C should be declared for C++ files, not C files Change-Id: I3e30af2e45774b50259b9575cf699d7c0b455cad
-rw-r--r--include/hardware/hw_auth_token.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hardware/hw_auth_token.h b/include/hardware/hw_auth_token.h
index e0a2e18..dcb4089 100644
--- a/include/hardware/hw_auth_token.h
+++ b/include/hardware/hw_auth_token.h
@@ -19,7 +19,7 @@
#ifndef ANDROID_HARDWARE_HW_AUTH_TOKEN_H
#define ANDROID_HARDWARE_HW_AUTH_TOKEN_H
-#ifndef __cplusplus
+#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
@@ -46,7 +46,7 @@ typedef struct __attribute__((__packed__)) {
uint8_t hmac[32];
} hw_auth_token_t;
-#ifndef __cplusplus
+#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus