From b630af3a54a3d06fc53cbb683500e585d354b962 Mon Sep 17 00:00:00 2001 From: Zink Pavel Date: Tue, 4 Apr 2023 22:05:44 +0700 Subject: [PATCH] simplified definition --- include/json/version.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/json/version.h b/include/json/version.h index f6118c0..9e95411 100644 --- a/include/json/version.h +++ b/include/json/version.h @@ -18,9 +18,7 @@ ((JSONCPP_VERSION_MAJOR << 24) | (JSONCPP_VERSION_MINOR << 16) | \ (JSONCPP_VERSION_PATCH << 8)) -#if defined(JSONCPP_USE_SECURE_MEMORY) -#define JSONCPP_USING_SECURE_MEMORY 1 -#else +#if !defined(JSONCPP_USE_SECURE_MEMORY) #define JSONCPP_USING_SECURE_MEMORY 0 #endif // If non-zero, the library zeroes any memory that it has allocated before