From 4e1f76fae58a7e0db111ec68e616e6ea3222f726 Mon Sep 17 00:00:00 2001 From: gcontini <1121667+gcontini@users.noreply.github.com> Date: 周日, 13 10月 2019 16:17:06 +0800 Subject: [PATCH] fix windows tests --- src/tools/base_lib/CryptoHelper.cpp | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/tools/base_lib/CryptoHelper.cpp b/src/tools/base_lib/CryptoHelper.cpp index 07d0348..530596e 100644 --- a/src/tools/base_lib/CryptoHelper.cpp +++ b/src/tools/base_lib/CryptoHelper.cpp @@ -1,8 +1,8 @@ #include <memory> #include "CryptoHelper.h" -#ifdef __unix__ +#ifdef __linux__ #include"linux/CryptoHelperLinux.h" -#else +#elif _WIN32 #include"win/CryptoHelperWindows.h" #endif @@ -10,11 +10,12 @@ namespace license { unique_ptr<CryptoHelper> CryptoHelper::getInstance() { -#ifdef __unix__ +#ifdef __linux__ unique_ptr<CryptoHelper> ptr((CryptoHelper*) new CryptoHelperLinux()); -#else - unique_ptr<CryptoHelper> ptr((CryptoHelper*) new CryptoHelperWindows()); +#elif _WIN32 + unique_ptr<CryptoHelper> ptr((CryptoHelper*) new CryptoHelperWindows()); #endif return ptr; } } + -- Gitblit v1.9.1