From 7ad5e5732b3187023687f7fed19b96dc93b57978 Mon Sep 17 00:00:00 2001 From: Victor Cebollada Date: Thu, 27 Feb 2020 07:55:18 +0000 Subject: [PATCH] Removed the 'setenv' function of the Third Party Windows platform. * Moved to windows-dependencies as it's needed by dali-demo. Change-Id: I329519c6825f4f9487cd05ded5f085afc6481bac Signed-off-by: Victor Cebollada --- third-party/windows-platform/environment.cpp | 9 --------- third-party/windows-platform/extern-definitions.h | 1 - 2 files changed, 10 deletions(-) diff --git a/third-party/windows-platform/environment.cpp b/third-party/windows-platform/environment.cpp index d6dab55..f218e20 100644 --- a/third-party/windows-platform/environment.cpp +++ b/third-party/windows-platform/environment.cpp @@ -3,15 +3,6 @@ using namespace std; -int setenv( const char *__name, const char *__value, int __replace ) -{ - string value = __name; - value += "="; - value += __value; - - return putenv( value.c_str() ); -} - const char* app_get_data_path() { static std::string envValue = ""; diff --git a/third-party/windows-platform/extern-definitions.h b/third-party/windows-platform/extern-definitions.h index 814b1e4..4b4ef27 100644 --- a/third-party/windows-platform/extern-definitions.h +++ b/third-party/windows-platform/extern-definitions.h @@ -20,7 +20,6 @@ #include -int setenv( const char* __name, const char* __value, int __replace ); const char* app_get_data_path(); static int strncasecmp(const char *s1, const char *s2, register int n) -- 2.7.4