aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-01-28 15:51:06 +0100
committermarha <marha@users.sourceforge.net>2012-01-28 15:51:06 +0100
commiteec00dde378e1f1ec72c886e809f693e103e77c8 (patch)
tree6ab0a5258f13114acaf6b7b2ca8f49e19a8acb13 /xorg-server/hw
parent59bda88ffb9deb72a727e7d6b4c141fd7d4678f4 (diff)
downloadvcxsrv-eec00dde378e1f1ec72c886e809f693e103e77c8.tar.gz
vcxsrv-eec00dde378e1f1ec72c886e809f693e103e77c8.tar.bz2
vcxsrv-eec00dde378e1f1ec72c886e809f693e103e77c8.zip
fmemopen is not supported in MSVC
Diffstat (limited to 'xorg-server/hw')
-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)
{