[v2 PATCH 1/4] include: Add inclusion guards for schema API enums.
Nikolay Sivov
nsivov at codeweavers.com
Mon Sep 14 07:39:51 CDT 2020
From: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
include/msxml2.idl | 3 +++
include/msxml6.idl | 3 +++
2 files changed, 6 insertions(+)
diff --git a/include/msxml2.idl b/include/msxml2.idl
index cfafc421336..452338bb01d 100644
--- a/include/msxml2.idl
+++ b/include/msxml2.idl
@@ -133,6 +133,8 @@ typedef enum tagDOMNodeType
} DOMNodeType;
cpp_quote("#endif")
+cpp_quote("#ifndef __msxml_som_enums__")
+cpp_quote("#define __msxml_som_enums__")
typedef enum _SOMITEMTYPE
{
SOMITEM_SCHEMA = 0x1000,
@@ -260,6 +262,7 @@ typedef enum _SCHEMATYPEVARIETY
SCHEMATYPEVARIETY_LIST = 1,
SCHEMATYPEVARIETY_UNION = 2,
} SCHEMATYPEVARIETY;
+cpp_quote("#endif /* __msxml_som_enums__ */")
[
local,
diff --git a/include/msxml6.idl b/include/msxml6.idl
index 1f657a8cde9..a595fbf4f5a 100644
--- a/include/msxml6.idl
+++ b/include/msxml6.idl
@@ -133,6 +133,8 @@ typedef enum tagDOMNodeType
} DOMNodeType;
cpp_quote("#endif")
+cpp_quote("#ifndef __msxml_som_enums__")
+cpp_quote("#define __msxml_som_enums__")
typedef enum _SOMITEMTYPE
{
SOMITEM_SCHEMA = 0x1000,
@@ -260,6 +262,7 @@ typedef enum _SCHEMATYPEVARIETY
SCHEMATYPEVARIETY_LIST = 1,
SCHEMATYPEVARIETY_UNION = 2,
} SCHEMATYPEVARIETY;
+cpp_quote("#endif /* __msxml_som_enums__ */")
[
local,
--
2.28.0
More information about the wine-devel
mailing list