]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix MinGW64 build broken by latest w32uniscribe.c changes
authorEli Zaretskii <eliz@gnu.org>
Fri, 21 Aug 2015 08:46:07 +0000 (11:46 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 21 Aug 2015 08:46:07 +0000 (11:46 +0300)
* src/w32uniscribe.c (UNISCRIBE_OPENTYPE): Define to 0x0100, for
MinGW64.  Reported by Andy Moreton <andrewjmoreton@gmail.com>.
(Bug#21260)

src/w32uniscribe.c

index b1056bc104e0132e4ab7048e99fe28d756344424..0e4177d06bf3d21b0f7913d92c9f5604d228bcb2 100644 (file)
@@ -25,6 +25,15 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
    of calling non-existent functions.  */
 #undef _WIN32_WINNT
 #define _WIN32_WINNT 0x500
+/* MinGW64 w32api headers by default define OPENTYPE_TAG typedef only
+   if _WIN32_WINNT >= 0x0600; defining UNISCRIBE_OPENTYPE as below
+   makes that typedef visible even for lower values of _WIN32_WINNT.
+   Mingw.org's w32api headers don't use UNISCRIBE_OPENTYPE at all, and
+   the OPENTYPE_TAG typedef is defined unconditionally there.  */
+#ifdef UNISCRIBE_OPENTYPE
+# undef UNISCRIBE_OPENTYPE
+#endif
+#define UNISCRIBE_OPENTYPE 0x0100
 #include <windows.h>
 #include <usp10.h>