diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2013-09-03 19:58:51 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-09-03 19:58:51 +0200 |
commit | 9af400f988b06e43f37167733d0404b66d0f4a81 (patch) | |
tree | 3f4b6f83a3709fc63cd00cca3e82ca9f8817fe85 | |
parent | 3d846e4e86785d2ec53a7248fa2dd24d8c11994e (diff) | |
download | libltdl-9af400f988b06e43f37167733d0404b66d0f4a81.tar.gz libltdl-9af400f988b06e43f37167733d0404b66d0f4a81.zip |
Additional k => tde renaming and fixes
-rw-r--r-- | ltdl_win.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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 } } } |