From 13ab72df2e606427985cd6dcf7db694f4243936b Mon Sep 17 00:00:00 2001 From: marha Date: Wed, 28 Mar 2012 10:41:43 +0200 Subject: Solved compiler warnings and link errors on windows --- xorg-server/os/log.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xorg-server/os/log.c') diff --git a/xorg-server/os/log.c b/xorg-server/os/log.c index f6410379c..56d693710 100644 --- a/xorg-server/os/log.c +++ b/xorg-server/os/log.c @@ -610,8 +610,12 @@ FatalError(const char *f, ...) else ErrorF("\nFatal server error:\n"); +#ifdef _MSC_VER + va_start(args, f); +#else /* Make a copy for OsVendorFatalError */ va_copy(args2, args); +#endif #ifdef __APPLE__ { @@ -629,6 +633,9 @@ FatalError(const char *f, ...) VErrorF(f, args); va_end(args); ErrorF("\n"); +#ifdef _MSC_VER + va_start(args2, f); +#endif if (!beenhere) OsVendorFatalError(f, args2); va_end(args2); -- cgit v1.2.3