summaryrefslogtreecommitdiffstats
path: root/include/hardware/keymaster_defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hardware/keymaster_defs.h')
-rw-r--r--include/hardware/keymaster_defs.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/hardware/keymaster_defs.h b/include/hardware/keymaster_defs.h
index e7ef5b5..664d3a7 100644
--- a/include/hardware/keymaster_defs.h
+++ b/include/hardware/keymaster_defs.h
@@ -21,7 +21,9 @@
#include <stdlib.h>
#include <string.h>
-__BEGIN_DECLS
+#ifndef __cplusplus
+extern "C" {
+#endif // __cplusplus
/**
* Authorization tags each have an associated type. This enumeration facilitates tagging each with
@@ -546,6 +548,8 @@ inline void keymaster_free_characteristics(keymaster_key_characteristics_t* char
}
}
-__END_DECLS
+#ifndef __cplusplus
+} // extern "C"
+#endif // __cplusplus
#endif // ANDROID_HARDWARE_KEYMASTER_DEFS_H