mxe/src/widl-1-fixes.patch

24 lines
869 B
Diff
Raw Normal View History

This file is part of MXE. See LICENSE.md for licensing information.
2014-10-29 09:57:11 +00:00
Contains ad hoc patches for cross building.
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Tony Theodore <tonyt@logyst.com>
Date: Sat, 18 Nov 2017 21:47:35 +1100
Subject: [PATCH] fixes
diff --git a/mingw-w64-tools/widl/include/windef.h b/mingw-w64-tools/widl/include/windef.h
index 1111111..2222222 100644
--- a/mingw-w64-tools/widl/include/windef.h
+++ b/mingw-w64-tools/widl/include/windef.h
@@ -85,7 +85,7 @@ extern "C" {
2014-10-29 09:57:11 +00:00
#endif /* __cdecl */
#ifndef __ms_va_list
-# if defined(__x86_64__) && defined (__GNUC__)
+# if defined(__x86_64__) && defined (__GNUC__) && defined(__builtin_ms_va_list)
# define __ms_va_list __builtin_ms_va_list
# define __ms_va_start(list,arg) __builtin_ms_va_start(list,arg)
# define __ms_va_end(list) __builtin_ms_va_end(list)