From eec00dde378e1f1ec72c886e809f693e103e77c8 Mon Sep 17 00:00:00 2001 From: marha Date: Sat, 28 Jan 2012 15:51:06 +0100 Subject: fmemopen is not supported in MSVC --- xorg-server/hw/xwin/winprefs.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xorg-server/hw') 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) { -- cgit v1.2.3