VCPKG - CMakeLists.txt updated to build for vcpkg.
[platform/core/uifw/dali-adaptor.git] / third-party / windows-platform / environment.cpp
1 #include <cstdlib>
2 #include <string>
3
4 using namespace std;
5
6 int setenv( const char *__name, const char *__value, int __replace )
7 {
8   string value = __name;
9   value += "=";
10   value += __value;
11
12   return putenv( value.c_str() );
13 }
14
15 const char* app_get_data_path()
16 {
17   static std::string envValue = "";
18
19   if( true == envValue.empty() )
20   {
21     envValue = std::getenv( "DemoData" );
22     envValue += "/";
23   }
24
25   return envValue.c_str();
26 }