The code generated by widl produces the following error in C++:
error: ISO C++ forbids forward references to 'enum' types
---
mingw-w64-headers/include/windows.storage.h | 98 -------------------
mingw-w64-headers/include/windows.storage.idl | 7 --
.../include/windows.system.threading.h | 32 ------
.../include/windows.system.threading.idl | 2 -
4 files changed, 139 deletions(-)
diff --git a/mingw-w64-headers/include/windows.storage.h
b/mingw-w64-headers/include/windows.storage.h
index 6e475af0..ade39226 100644
--- a/mingw-w64-headers/include/windows.storage.h
+++ b/mingw-w64-headers/include/windows.storage.h
@@ -354,104 +354,6 @@ namespace ABI {
#endif /* __cplusplus */
#endif
-#ifdef __cplusplus
-} /* extern "C" */
-namespace ABI {
- namespace Windows {
- namespace Storage {
- enum StorageDeleteOption;
- }
- }
-}
-extern "C" {
-#else
-enum __x_ABI_CWindows_CStorage_CStorageDeleteOption;
-#endif
-
-#ifdef __cplusplus
-} /* extern "C" */
-namespace ABI {
- namespace Windows {
- namespace Storage {
- enum NameCollisionOption;
- }
- }
-}
-extern "C" {
-#else
-enum __x_ABI_CWindows_CStorage_CNameCollisionOption;
-#endif
-
-#ifdef __cplusplus
-} /* extern "C" */
-namespace ABI {
- namespace Windows {
- namespace Storage {
- enum StorageItemTypes;
- }
- }
-}
-extern "C" {
-#else
-enum __x_ABI_CWindows_CStorage_CStorageItemTypes;
-#endif
-
-#ifdef __cplusplus
-} /* extern "C" */
-namespace ABI {
- namespace Windows {
- namespace Storage {
- enum ApplicationDataLocality;
- }
- }
-}
-extern "C" {
-#else
-enum __x_ABI_CWindows_CStorage_CApplicationDataLocality;
-#endif
-
-#ifdef __cplusplus
-} /* extern "C" */
-namespace ABI {
- namespace Windows {
- namespace Storage {
- enum ApplicationDataCreateDisposition;
- }
- }
-}
-extern "C" {
-#else
-enum __x_ABI_CWindows_CStorage_CApplicationDataCreateDisposition;
-#endif
-
-#ifdef __cplusplus
-} /* extern "C" */
-namespace ABI {
- namespace Windows {
- namespace Storage {
- enum FileAttributes;
- }
- }
-}
-extern "C" {
-#else
-enum __x_ABI_CWindows_CStorage_CFileAttributes;
-#endif
-
-#ifdef __cplusplus
-} /* extern "C" */
-namespace ABI {
- namespace Windows {
- namespace Storage {
- enum CreationCollisionOption;
- }
- }
-}
-extern "C" {
-#else
-enum __x_ABI_CWindows_CStorage_CCreationCollisionOption;
-#endif
-
typedef enum NameCollisionoption {
NameCollisionoption_GenerateUniqueName = 0,
NameCollisionoption_ReplaceExisting = 1,
diff --git a/mingw-w64-headers/include/windows.storage.idl
b/mingw-w64-headers/include/windows.storage.idl
index e32d638a..b781e114 100644
--- a/mingw-w64-headers/include/windows.storage.idl
+++ b/mingw-w64-headers/include/windows.storage.idl
@@ -33,13 +33,6 @@ namespace Windows {
interface ApplicationDataSetVersionHandler; //delegate
interface ISetVersionRequest;
interface ISetVersionDeferral;
- enum StorageDeleteOption;
- enum NameCollisionOption;
- enum StorageItemTypes;
- enum ApplicationDataLocality;
- enum ApplicationDataCreateDisposition;
- enum FileAttributes;
- enum CreationCollisionOption;
}
}
diff --git a/mingw-w64-headers/include/windows.system.threading.h
b/mingw-w64-headers/include/windows.system.threading.h
index bbe22ed9..922fdcea 100644
--- a/mingw-w64-headers/include/windows.system.threading.h
+++ b/mingw-w64-headers/include/windows.system.threading.h
@@ -151,38 +151,6 @@ extern "C" {
struct __x_ABI_CWindows_CFoundation_CTimeSpan;
#endif
-#ifdef __cplusplus
-} /* extern "C" */
-namespace ABI {
- namespace Windows {
- namespace System {
- namespace Threading {
- enum WorkItemPriority;
- }
- }
- }
-}
-extern "C" {
-#else
-enum __x_ABI_CWindows_CSystem_CThreading_CWorkItemPriority;
-#endif
-
-#ifdef __cplusplus
-} /* extern "C" */
-namespace ABI {
- namespace Windows {
- namespace System {
- namespace Threading {
- enum WorkItemOptions;
- }
- }
- }
-}
-extern "C" {
-#else
-enum __x_ABI_CWindows_CSystem_CThreading_CWorkItemOptions;
-#endif
-
#ifndef
____x_ABI_CWindows_CSystem_CThreading_CTimerElapsedHandler_FWD_DEFINED__
#define
____x_ABI_CWindows_CSystem_CThreading_CTimerElapsedHandler_FWD_DEFINED__
typedef interface __x_ABI_CWindows_CSystem_CThreading_CTimerElapsedHandler
__x_ABI_CWindows_CSystem_CThreading_CTimerElapsedHandler;
diff --git a/mingw-w64-headers/include/windows.system.threading.idl
b/mingw-w64-headers/include/windows.system.threading.idl
index e4e9f8c4..f92cd39b 100644
--- a/mingw-w64-headers/include/windows.system.threading.idl
+++ b/mingw-w64-headers/include/windows.system.threading.idl
@@ -19,8 +19,6 @@ namespace Windows {
namespace System {
namespace Threading {
- enum WorkItemPriority;
- enum WorkItemOptions;
interface TimerElapsedHandler; //delegate
interface TimerDestroyedHandler; //delegate
interface WorkItemHandler; //delegate
--
2.29.2
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public