From 78b6def7e795a1bdc37093f582db56cbdae01347 Mon Sep 17 00:00:00 2001
From: Gabriele Contini <contini.mailing@gmail.com>
Date: 周六, 19 10月 2019 10:10:45 +0800
Subject: [PATCH] Merge branch 'feature/code_review_and_refactor' into develop

---
 src/library/os/os.h |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/library/os/os.h b/src/library/os/os.h
index 7eea3eb..1371786 100644
--- a/src/library/os/os.h
+++ b/src/library/os/os.h
@@ -2,7 +2,7 @@
  * os-dependent.hpp
  *
  *  Created on: Mar 29, 2014
- *      
+ *
  */
 
 #ifndef OS_DEPENDENT_HPP_
@@ -79,6 +79,14 @@
 
 FUNCTION_RETURN verifySignature(const char* stringToVerify, const char* signatureB64);
 
+#ifdef _WIN32
+#define SETENV(VAR,VAL) _putenv_s(VAR, VAL);
+#define	UNSETENV(P) _putenv_s(P, "");
+#else
+#define SETENV(VAR,VAL) setenv(VAR, VAL, 1);
+#define	UNSETENV(P)	unsetenv(P);
+#endif
+
 #ifdef __cplusplus
 }
 #endif

--
Gitblit v1.9.1