diff options
| author | Aybe <aybe@users.noreply.github.com> | 2017-11-17 00:54:14 +0100 |
|---|---|---|
| committer | Aybe <aybe@users.noreply.github.com> | 2017-11-17 00:54:14 +0100 |
| commit | cb30c3fd0014f264709287fee43f24310dfde4aa (patch) | |
| tree | e92c400d64b5984a6266b91e12d887aa4a46db2d /ports/libflac/uwp-consolewidth.patch | |
| parent | de7382ce8945fae70d947590262c2e0b9ce4a6bf (diff) | |
| download | vcpkg-cb30c3fd0014f264709287fee43f24310dfde4aa.tar.gz vcpkg-cb30c3fd0014f264709287fee43f24310dfde4aa.zip | |
[libflac] patches for UWP builds
Diffstat (limited to 'ports/libflac/uwp-consolewidth.patch')
| -rw-r--r-- | ports/libflac/uwp-consolewidth.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ports/libflac/uwp-consolewidth.patch b/ports/libflac/uwp-consolewidth.patch new file mode 100644 index 000000000..87a15f663 --- /dev/null +++ b/ports/libflac/uwp-consolewidth.patch @@ -0,0 +1,16 @@ +diff --git a/src/share/win_utf8_io/win_utf8_io.c b/src/share/win_utf8_io/win_utf8_io.c +index c61d27f..5b0e8f0 100644 +--- a/src/share/win_utf8_io/win_utf8_io.c ++++ b/src/share/win_utf8_io/win_utf8_io.c +@@ -164,11 +164,6 @@ size_t strlen_utf8(const char *str) + int win_get_console_width(void) + { + int width = 80; +- CONSOLE_SCREEN_BUFFER_INFO csbi; +- HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE); +- if(hOut != INVALID_HANDLE_VALUE && hOut != NULL) +- if (GetConsoleScreenBufferInfo(hOut, &csbi) != 0) +- width = csbi.dwSize.X; + return width; + } + |
