aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libfontenc/build.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/libfontenc/build.patch')
-rw-r--r--vcpkg/ports/libfontenc/build.patch38
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