remove unnecessary #error

Signed-off-by: Double Sine <xiao_ai_yu@live.cn>
This commit is contained in:
Double Sine 2022-05-08 08:37:23 +08:00
parent f1df7feead
commit 24d11b741c
No known key found for this signature in database
GPG Key ID: 44460E4F43EA8633

View File

@ -5,8 +5,6 @@
#include <openssl/rand.h> #include <openssl/rand.h>
#if (OPENSSL_VERSION_NUMBER & 0xf0000000) == 0x30000000 // for openssl 3.x.x #if (OPENSSL_VERSION_NUMBER & 0xf0000000) == 0x30000000 // for openssl 3.x.x
#include <openssl/provider.h> #include <openssl/provider.h>
#else
#error "navicat_serial_generator.cpp: Unexpected OpenSSL version."
#endif #endif
#include "resource_wrapper.hpp" #include "resource_wrapper.hpp"
@ -155,8 +153,6 @@ namespace nkg {
throw backend_error(NKG_CURRENT_SOURCE_FILE(), NKG_CURRENT_SOURCE_LINE(), u8"OSSL_PROVIDER_load failed."); throw backend_error(NKG_CURRENT_SOURCE_FILE(), NKG_CURRENT_SOURCE_LINE(), u8"OSSL_PROVIDER_load failed.");
} }
} }
#else
#error "navicat_serial_generator.cpp: Unexpected OpenSSL version."
#endif #endif
resource_wrapper evp_cipher_context{ resource_traits::openssl::evp_cipher_ctx{}, EVP_CIPHER_CTX_new() }; resource_wrapper evp_cipher_context{ resource_traits::openssl::evp_cipher_ctx{}, EVP_CIPHER_CTX_new() };