forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[jxrlib] Fix mingw build (microsoft#27042)
* Fix mingw build * Minor portfile changes * Revise guiddef.h selection * Update versions * CI [skip actions]
- Loading branch information
Showing
7 changed files
with
89 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
diff --git a/common/include/wmspecstrings_adt.h b/common/include/wmspecstrings_adt.h | ||
index ca7f25f..d5eb028 100644 | ||
--- a/common/include/wmspecstrings_adt.h | ||
+++ b/common/include/wmspecstrings_adt.h | ||
@@ -36,6 +36,10 @@ | ||
__type_has_adt_prop(compname,valid_schars) \ | ||
__type_has_adt_prop(compname,correct_len) \ | ||
__nullterminated | ||
+#ifdef __MINGW32__ | ||
+#undef __$compname_props | ||
+#define __$compname_props | ||
+#endif | ||
#if defined(UNICODE) || defined(_UNICODE) | ||
#define __$TCHAR unsigned short | ||
#else | ||
diff --git a/image/sys/strcodec.h b/image/sys/strcodec.h | ||
index 695a454..9fad5b6 100644 | ||
--- a/image/sys/strcodec.h | ||
+++ b/image/sys/strcodec.h | ||
@@ -59,7 +59,7 @@ | ||
//#ifdef WIN32 | ||
#if defined(WIN32) && !defined(UNDER_CE) // WIN32 seems to be defined always in VS2005 for ARM platform | ||
#define PLATFORM_X86 | ||
-#include "..\x86\x86.h" | ||
+#include "../x86/x86.h" | ||
#endif | ||
|
||
#ifndef UNREFERENCED_PARAMETER | ||
diff --git a/jxrgluelib/JXRMeta.h b/jxrgluelib/JXRMeta.h | ||
index b7b5880..7c9d653 100644 | ||
--- a/jxrgluelib/JXRMeta.h | ||
+++ b/jxrgluelib/JXRMeta.h | ||
@@ -111,6 +111,18 @@ | ||
#define __out_win __out | ||
#endif | ||
|
||
+#ifndef __in | ||
+#define __in | ||
+#endif | ||
+#ifndef __out | ||
+#define __out | ||
+#endif | ||
+#ifndef __in_ecount | ||
+#define __in_ecount(x) | ||
+#endif | ||
+#ifndef __out_ecount | ||
+#define __out_ecount(x) | ||
+#endif | ||
|
||
//================================================================ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/common/include/guiddef.h b/common/include/jxrguiddef.h | ||
similarity index 100% | ||
rename from common/include/guiddef.h | ||
rename to common/include/jxrguiddef.h | ||
diff --git a/jxrgluelib/JXRGlue.h b/jxrgluelib/JXRGlue.h | ||
index d0b219c..c3e5d2b 100644 | ||
--- a/jxrgluelib/JXRGlue.h | ||
+++ b/jxrgluelib/JXRGlue.h | ||
@@ -32,7 +32,11 @@ extern "C" { | ||
#endif | ||
|
||
#include <JXRMeta.h> | ||
+#ifdef _WIN32 | ||
#include <guiddef.h> | ||
+#else | ||
+#include <jxrguiddef.h> | ||
+#endif | ||
|
||
//================================================================ | ||
#define WMP_SDK_VERSION 0x0101 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters