---
 mingw-w64-crt/Makefile.am                     |  1 +
 mingw-w64-crt/lib-common/gamemode.def         |  7 +++++++
 mingw-w64-crt/lib-common/windowsapp.mri       |  1 +
 mingw-w64-crt/lib32/gamemode.def              |  7 +++++++
 mingw-w64-headers/include/expandedresources.h | 20 +++++++++++++++++++
 5 files changed, 36 insertions(+)
 create mode 100644 mingw-w64-crt/lib-common/gamemode.def
 create mode 100644 mingw-w64-crt/lib32/gamemode.def
 create mode 100644 mingw-w64-headers/include/expandedresources.h

diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index 4a4ce5a2..735e21bb 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
@@ -1730,6 +1730,7 @@ endif
        $(RANLIB) $@
 
 %/libwindowsapp.a: lib-common/windowsapp.mri \
+               %/libgamemode.a \
                %/libapi-ms-win-core-com-l1-1-1.a \
                %/libapi-ms-win-core-com-l2-1-1.a \
                %/libapi-ms-win-core-com-midlproxystub-l1-1-0.a \
diff --git a/mingw-w64-crt/lib-common/gamemode.def 
b/mingw-w64-crt/lib-common/gamemode.def
new file mode 100644
index 00000000..9fb96813
--- /dev/null
+++ b/mingw-w64-crt/lib-common/gamemode.def
@@ -0,0 +1,7 @@
+LIBRARY gamemode.dll
+
+EXPORTS
+
+GetExpandedResourceExclusiveCpuCount
+HasExpandedResources
+ReleaseExclusiveCpuSets
diff --git a/mingw-w64-crt/lib-common/windowsapp.mri 
b/mingw-w64-crt/lib-common/windowsapp.mri
index f7e17753..003b7cc2 100644
--- a/mingw-w64-crt/lib-common/windowsapp.mri
+++ b/mingw-w64-crt/lib-common/windowsapp.mri
@@ -1,4 +1,5 @@
 CREATE libwindowsapp.a
+ADDLIB libgamemode.a
 ADDLIB libapi-ms-win-core-com-l1-1-1.a
 ADDLIB libapi-ms-win-core-com-l2-1-1.a
 ADDLIB libapi-ms-win-core-com-midlproxystub-l1-1-0.a
diff --git a/mingw-w64-crt/lib32/gamemode.def b/mingw-w64-crt/lib32/gamemode.def
new file mode 100644
index 00000000..9a11ad6a
--- /dev/null
+++ b/mingw-w64-crt/lib32/gamemode.def
@@ -0,0 +1,7 @@
+LIBRARY gamemode.dll
+
+EXPORTS
+
+GetExpandedResourceExclusiveCpuCount@4
+HasExpandedResources@4
+ReleaseExclusiveCpuSets@0
diff --git a/mingw-w64-headers/include/expandedresources.h 
b/mingw-w64-headers/include/expandedresources.h
new file mode 100644
index 00000000..fa9cb0d6
--- /dev/null
+++ b/mingw-w64-headers/include/expandedresources.h
@@ -0,0 +1,20 @@
+/**
+ * This file is part of the mingw-w64 runtime package.
+ * No warranty is given; refer to the file DISCLAIMER within this package.
+ */
+#ifndef __EXPANDEDRESOURCES_H__
+#define __EXPANDEDRESOURCES_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+HRESULT WINAPI GetExpandedResourceExclusiveCpuCount(ULONG *exclusiveCpuCount);
+HRESULT WINAPI HasExpandedResources(BOOL *hasExpandedResources);
+HRESULT WINAPI ReleaseExclusiveCpuSets(VOID);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __EXPANDEDRESOURCES_H__ */
-- 
2.17.1



_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to