diff options
Diffstat (limited to 'libXt')
-rw-r--r-- | libXt/src/Initialize.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libXt/src/Initialize.c b/libXt/src/Initialize.c index 1e5e261fb..21ae9f695 100644 --- a/libXt/src/Initialize.c +++ b/libXt/src/Initialize.c @@ -428,6 +428,9 @@ static void CombineUserDefaults( Display *dpy, XrmDatabase *pdb) { +#ifdef _MSC_VER + char *slashDotXdefaults = ".Xdefaults"; +#else #ifdef __MINGW32__ char *slashDotXdefaults = "/Xdefaults"; #else @@ -439,9 +442,13 @@ static void CombineUserDefaults( XrmCombineDatabase(XrmGetStringDatabase(dpy_defaults), pdb, False); } else { char filename[PATH_MAX]; +#ifndef _MSC_VER (void) GetRootDirName(filename, PATH_MAX - strlen (slashDotXdefaults) - 1); (void) strcat(filename, slashDotXdefaults); +#else + strcpy(filename, slashDotXdefaults); +#endif (void)XrmCombineFileDatabase(filename, pdb, False); } } |