From fe82c12d5bb0940017d7a246a7c1fa308dd78419 Mon Sep 17 00:00:00 2001 From: Andrey Bychkov Date: Sat, 16 Nov 2024 14:53:04 +0300 Subject: [PATCH] fix build --- libs/crypt/picrypt.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libs/crypt/picrypt.cpp b/libs/crypt/picrypt.cpp index 37e17a19..bee924d9 100644 --- a/libs/crypt/picrypt.cpp +++ b/libs/crypt/picrypt.cpp @@ -20,17 +20,15 @@ #include "picrypt.h" #include "pitranslator.h" -#ifdef PIP_CRYPT #include -#define PICRYPT_DISABLED_WARNING \ - piCout << "[PICrypt]" \ - << "Warning: PICrypt is disabled, to enable install sodium library and rebuild pip"_tr("PICrypt"); + namespace { constexpr char hash_def_key[] = "_picrypt_\0\0\0\0\0\0\0"; constexpr int hash_def_key_size = 9; } // namespace + PICrypt::PICrypt() { if (!init()) { piCout << "[PICrypt]"