diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libfontenc/build.patch | |
Diffstat (limited to 'vcpkg/ports/libfontenc/build.patch')
| -rw-r--r-- | vcpkg/ports/libfontenc/build.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/vcpkg/ports/libfontenc/build.patch b/vcpkg/ports/libfontenc/build.patch new file mode 100644 index 0000000..c5e1b75 --- /dev/null +++ b/vcpkg/ports/libfontenc/build.patch @@ -0,0 +1,38 @@ +diff --git a/src/encparse.c b/src/encparse.c +index 548110ede..61952b9ce 100644 +--- a/src/encparse.c ++++ b/src/encparse.c +@@ -28,12 +28,16 @@ THE SOFTWARE. + to be pure ASCII. Bloody ``Code Set Independence''. */ + + #include <string.h> ++#ifndef _MSC_VER + #include <strings.h> ++#else ++#define strcasecmp _stricmp ++#endif + #include <stdio.h> + + #include <stdlib.h> + +-#include "zlib.h" ++#include <zlib.h> + typedef gzFile FontFilePtr; + + #define FontFileGetc(f) gzgetc(f) +diff --git a/src/fontenc.c b/src/fontenc.c +index c4ccd5eb0..e87d1089d 100644 +--- a/src/fontenc.c ++++ b/src/fontenc.c +@@ -23,7 +23,11 @@ THE SOFTWARE. + /* Backend-independent encoding code */ + + #include <string.h> ++#ifndef _MSC_VER + #include <strings.h> ++#else ++#define strcasecmp _stricmp ++#endif + #include <stdlib.h> + + #define FALSE 0 |