From 404c90182ca3bcb029f04a604cb5d51ba51096b9 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Sat, 19 Sep 2020 12:27:05 +0200 Subject: Use DEPRECATED macro for C compatibility --- NK_C_API.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/NK_C_API.h b/NK_C_API.h index 53aa658..0c74042 100644 --- a/NK_C_API.h +++ b/NK_C_API.h @@ -837,7 +837,8 @@ extern "C" { * @param user_pin 20 characters User PIN * @return command processing error code */ - [[deprecated("NK_set_unencrypted_read_only is deprecated. Use NK_set_unencrypted_read_only_admin instead")]] + //[[deprecated("NK_set_unencrypted_read_only is deprecated. Use NK_set_unencrypted_read_only_admin instead")]] + DEPRECATED NK_C_API int NK_set_unencrypted_read_only(const char *user_pin); /** @@ -850,7 +851,8 @@ extern "C" { * @param user_pin 20 characters User PIN * @return command processing error code */ - [[deprecated("NK_set_unencrypted_read_write is deprecated. Use NK_set_unencrypted_read_write_admin instead")]] + //[[deprecated("NK_set_unencrypted_read_write is deprecated. Use NK_set_unencrypted_read_write_admin instead")]] + DEPRECATED NK_C_API int NK_set_unencrypted_read_write(const char *user_pin); /** -- cgit v1.2.3