From b2283577b5b1a63a8d54f0cfc9c7b283626ea432 Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath <[email protected]>
Date: Sun, 4 Oct 2020 19:40:54 +0530
Subject: [PATCH 1/4] headers: Add missing values of MAPPING_ENUM_OPTIONS 
structure members.

Also add the conditional "extern C" for C++.

Signed-off-by: Biswapriyo Nath <[email protected]>
---
 mingw-w64-headers/include/elscore.h | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/mingw-w64-headers/include/elscore.h 
b/mingw-w64-headers/include/elscore.h
index 589fa1e..aaf4ab0 100644
--- a/mingw-w64-headers/include/elscore.h
+++ b/mingw-w64-headers/include/elscore.h
@@ -8,6 +8,10 @@
 
 #include <objbase.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #ifndef ELSCOREAPI
 #define ELSCOREAPI DECLSPEC_IMPORT
 #endif
@@ -16,6 +20,16 @@
 #define CALLBACK WINAPI
 #endif
 
+/* MAPPING_ENUM_OPTIONS.ServiceType */
+#define ALL_SERVICE_TYPES 0
+#define HIGHLEVEL_SERVICE_TYPES 1
+#define LOWLEVEL_SERVICE_TYPES 2
+
+/* MAPPING_ENUM_OPTIONS.OnlineService */
+#define ALL_SERVICES 0
+#define ONLINE_SERVICES 1
+#define OFFLINE_SERVICES 2
+
 typedef struct _MAPPING_DATA_RANGE {
   DWORD  dwStartIndex;
   DWORD  dwEndIndex;
@@ -140,4 +154,8 @@ ELSCOREAPI HRESULT WINAPI MappingGetServices(
   DWORD *pdwServicesCount
 );
 
+#ifdef __cplusplus
+};
+#endif
+
 #endif /*__INC_ELSCORE__*/
-- 
2.27.0

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to