diff options
| author | Eli Zaretskii | 2015-08-21 17:45:41 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2015-08-21 17:45:41 +0300 |
| commit | 8583c215a24e31974bb47dccf56f9d3933f17c55 (patch) | |
| tree | 53a40e78e72fed47b63bfd6e35b80425f0c45235 | |
| parent | 1c671d650ce8da0b09494fb43987c9449331ed63 (diff) | |
| download | emacs-8583c215a24e31974bb47dccf56f9d3933f17c55.tar.gz emacs-8583c215a24e31974bb47dccf56f9d3933f17c55.zip | |
A better fix for bug#21303
* src/w32uniscribe.c (_WIN32_WINNT): Define to 0x0600. This is a
cleaner fix for Bug#21260 than the previous change.
| -rw-r--r-- | src/w32uniscribe.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/src/w32uniscribe.c b/src/w32uniscribe.c index 0e4177d06bf..ec14dbe19b7 100644 --- a/src/w32uniscribe.c +++ b/src/w32uniscribe.c | |||
| @@ -18,22 +18,15 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 18 | 18 | ||
| 19 | 19 | ||
| 20 | #include <config.h> | 20 | #include <config.h> |
| 21 | /* Override API version - Uniscribe is only available as standard since | 21 | /* Override API version - Uniscribe is only available as standard |
| 22 | Windows 2000, though most users of older systems will have it | 22 | since Windows 2000, though most users of older systems will have it |
| 23 | since it installs with Internet Explorer 5.0 and other software. | 23 | since it installs with Internet Explorer 5.0 and other software. |
| 24 | We only enable the feature if it is available, so there is no chance | 24 | Also, MinGW64 w32api headers by default define OPENTYPE_TAG typedef |
| 25 | of calling non-existent functions. */ | 25 | only if _WIN32_WINNT >= 0x0600. We only use the affected APIs if |
| 26 | they are available, so there is no chance of calling non-existent | ||
| 27 | functions. */ | ||
| 26 | #undef _WIN32_WINNT | 28 | #undef _WIN32_WINNT |
| 27 | #define _WIN32_WINNT 0x500 | 29 | #define _WIN32_WINNT 0x0600 |
| 28 | /* MinGW64 w32api headers by default define OPENTYPE_TAG typedef only | ||
| 29 | if _WIN32_WINNT >= 0x0600; defining UNISCRIBE_OPENTYPE as below | ||
| 30 | makes that typedef visible even for lower values of _WIN32_WINNT. | ||
| 31 | Mingw.org's w32api headers don't use UNISCRIBE_OPENTYPE at all, and | ||
| 32 | the OPENTYPE_TAG typedef is defined unconditionally there. */ | ||
| 33 | #ifdef UNISCRIBE_OPENTYPE | ||
| 34 | # undef UNISCRIBE_OPENTYPE | ||
| 35 | #endif | ||
| 36 | #define UNISCRIBE_OPENTYPE 0x0100 | ||
| 37 | #include <windows.h> | 30 | #include <windows.h> |
| 38 | #include <usp10.h> | 31 | #include <usp10.h> |
| 39 | 32 | ||