Adjust Makefile and e_includes with the proper path

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-04-24 08:25:23 +01:00
parent 02560af2ad
commit d70c93467b
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,28 @@
#include "e.h"
EAPI void
e_util_env_set(const char *var, const char *val)
{
if (val)
{
#ifdef HAVE_SETENV
setenv(var, val, 1);
#else
char buf[8192];
snprintf(buf, sizeof(buf), "%s=%s", var, val);
if (getenv(var))
putenv(buf);
else
putenv(strdup(buf));
#endif
}
else
{
#ifdef HAVE_UNSETENV
unsetenv(var);
#else
if (getenv(var)) putenv(var);
#endif
}
}

View File

@ -0,0 +1,9 @@
#ifdef E_TYPEDEFS
#else
# ifndef E_UTILS_H
# define E_UTILS_H
EAPI void e_util_env_set(const char *var, const char *val);
# endif
#endif