blob: 420f37284f87cfa9142ed3d226d5eb15e139a546 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
diff --git a/src/FreeType/ftenc.c b/src/FreeType/ftenc.c
index 5b0299345..5abffb6e0 100644
--- a/src/FreeType/ftenc.c
+++ b/src/FreeType/ftenc.c
@@ -41,6 +41,10 @@ THE SOFTWARE.
#include FT_XFREE86_H
#include "ft.h"
+#if (defined(WIN32) || defined(WIN64) || defined(_WIN32) || defined(_WIN64)) && !defined(HAVE_STRCASECMP)
+#define strcasecmp _stricmp
+#endif
+
static int find_cmap(int, int, int, FT_Face, FT_CharMap *);
static int
diff --git a/src/FreeType/xttcap.c b/src/FreeType/xttcap.c
index f54f76c85..a5a047ee6 100644
--- a/src/FreeType/xttcap.c
+++ b/src/FreeType/xttcap.c
@@ -56,6 +56,10 @@ static char const * const releaseID =
#include "xttcap.h"
+#if (defined(WIN32) || defined(WIN64) || defined(_WIN32) || defined(_WIN64)) && !defined(HAVE_STRCASECMP)
+#define strcasecmp _stricmp
+#endif
+
/**************************************************************************
Private Data Types
diff --git a/src/fontfile/renderers.c b/src/fontfile/renderers.c
index a457fb7bb..c44591f13 100644
--- a/src/fontfile/renderers.c
+++ b/src/fontfile/renderers.c
@@ -31,10 +31,13 @@ in this Software without prior written authorization from The Open Group.
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
+#include <string.h>
#include "libxfontint.h"
#include "src/util/replace.h"
#include <X11/fonts/fntfilst.h>
-
+#if (defined(WIN32) || defined(WIN64) || defined(_WIN32) || defined(_WIN64)) && !defined(HAVE_STRCASECMP)
+#define strcasecmp _stricmp
+#endif
static FontRenderersRec renderers;
/*
|