vcpkg/ports/libfontenc/build.patch
Alexander Neumann 1f3914c769
[xwindow] part 4/N (#26576)
* [font-util] add port

* [libfontenc] add port

* [libfs] add port

* format manifest

* remove -string

* v db

* Update ports/font-util/build.patch

* v db

* use magic macro instead of magic numbers....

* v db
2022-09-19 12:08:27 -07:00

39 lines
811 B
Diff

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