summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-09-03 19:58:51 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-09-03 19:58:51 +0200
commit9af400f988b06e43f37167733d0404b66d0f4a81 (patch)
tree3f4b6f83a3709fc63cd00cca3e82ca9f8817fe85
parent3d846e4e86785d2ec53a7248fa2dd24d8c11994e (diff)
downloadlibltdl-9af400f988b06e43f37167733d0404b66d0f4a81.tar.gz
libltdl-9af400f988b06e43f37167733d0404b66d0f4a81.zip
Additional k => tde renaming and fixes
-rw-r--r--ltdl_win.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ltdl_win.c b/ltdl_win.c
index a7fae0d..0027cbd 100644
--- a/ltdl_win.c
+++ b/ltdl_win.c
@@ -62,7 +62,7 @@ void win32_mapSo2Dll( char *path )
}
#define MAX_PATH 0x1ff
-static char win32_mapDir_KDEDIR[MAX_PATH] = "";
+static char win32_mapDir_TDEDIR[MAX_PATH] = "";
// paths name mappings
// when mapping is performed, frees old name at *dir and allocates new path for *dir
@@ -72,19 +72,19 @@ void win32_mapDir( char **dir )
static const char* WIN32_LIBDIR_TO = "c:/kde/lib/trinity";
char *e;
//TODO........
- if (!*win32_mapDir_KDEDIR) {
- e = getenv("KDEDIR");
+ if (!*win32_mapDir_TDEDIR) {
+ e = getenv("TDEDIR");
if (e)
- strncpy( win32_mapDir_KDEDIR, e, MAX_PATH );
+ strncpy( win32_mapDir_TDEDIR, e, MAX_PATH );
}
- assert(dir && *dir && win32_mapDir_KDEDIR && *win32_mapDir_KDEDIR);
+ assert(dir && *dir && win32_mapDir_TDEDIR && *win32_mapDir_TDEDIR);
// /opt/trinity/lib/trinity -> <letter>:/kde/lib/trinity
if (strcmp(*dir, WIN32_LIBDIR_FROM)==0) {
free(*dir);
*dir=strdup(WIN32_LIBDIR_TO);
- if (win32_mapDir_KDEDIR && *win32_mapDir_KDEDIR) {
- (*dir)[0]=win32_mapDir_KDEDIR[0]; //copy drive letter
+ if (win32_mapDir_TDEDIR && *win32_mapDir_TDEDIR) {
+ (*dir)[0]=win32_mapDir_TDEDIR[0]; //copy drive letter
}
}
}