From 8bbef2865455754425a84b86680a89bff8aa7691 Mon Sep 17 00:00:00 2001
From: gcontini <1121667+gcontini@users.noreply.github.com>
Date: 周六, 19 10月 2019 08:50:45 +0800
Subject: [PATCH] issue #64 , issue #56 (part)

---
 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 baa7e8f..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 CryptpHelperWindows());
+#elif _WIN32
+	unique_ptr<CryptoHelper> ptr((CryptoHelper*) new CryptoHelperWindows());	
 #endif
 	return ptr;
 }
 }
+

--
Gitblit v1.9.1