aboutsummaryrefslogtreecommitdiff
path: root/xorg-server
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server')
-rw-r--r--xorg-server/hw/xwin/winprefs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xorg-server/hw/xwin/winprefs.c b/xorg-server/hw/xwin/winprefs.c
index b003f455d..8c738e515 100644
--- a/xorg-server/hw/xwin/winprefs.c
+++ b/xorg-server/hw/xwin/winprefs.c
@@ -722,6 +722,7 @@ winPrefsLoadPreferences (char *path)
if (path)
prefFile = fopen (path, "r");
+#ifndef _MSC_VER
else
{
char defaultPrefs[] =
@@ -737,6 +738,7 @@ winPrefsLoadPreferences (char *path)
path = "built-in default";
prefFile = fmemopen(defaultPrefs, strlen(defaultPrefs), "r");
}
+#endif
if (!prefFile)
{