From bb6d2a09b87560ae396085ef0981b700924333cd Mon Sep 17 00:00:00 2001 From: Colin Harrison Date: Tue, 29 Apr 2008 13:45:06 +0100 Subject: Xming specific configuration file settings --- src/Initialize.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Initialize.c b/src/Initialize.c index 5813351..659287a 100644 --- a/src/Initialize.c +++ b/src/Initialize.c @@ -411,7 +411,11 @@ static void CombineUserDefaults( Display *dpy, XrmDatabase *pdb) { +#ifdef __MINGW32__ + char *slashDotXdefaults = "/Xdefaults"; +#else char *slashDotXdefaults = "/.Xdefaults"; +#endif char *dpy_defaults = XResourceManagerString(dpy); if (dpy_defaults) { @@ -549,7 +553,11 @@ XrmDatabase XtScreenDatabase( if (!(filename = getenv("XENVIRONMENT"))) { int len; +#ifdef __MINGW32__ + char *slashDotXdefaultsDash = "/Xdefaults-"; +#else char *slashDotXdefaultsDash = "/.Xdefaults-"; +#endif (void) GetRootDirName(filename = filenamebuf, PATH_MAX - strlen (slashDotXdefaultsDash) - 1); -- cgit v1.2.3