summaryrefslogtreecommitdiffstats
path: root/index.c
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2020-03-15 00:03:07 +0100
committerpgen <p.gen.progs@gmail.com>2020-03-24 19:57:27 +0100
commit7c5895a3214edee5be98e643510916f83353a3ac (patch)
treeae396457b33b2204032225dd9d3e5962d607d4aa /index.c
parent5d51aea989338ae7be9a900e2514877bb0493efa (diff)
xwcscasecmp is missing in C99, use a local version
Diffstat (limited to 'index.c')
-rw-r--r--index.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.c b/index.c
index b92828e..4f92c19 100644
--- a/index.c
+++ b/index.c
@@ -8,12 +8,14 @@
/* *************************************************************** */
#include <stdlib.h>
+#include <stdint.h>
#include <unistd.h>
#include <wchar.h>
#include <string.h>
#include "xmalloc.h"
#include "list.h"
+#include "utils.h"
#include "index.h"
/* List of words matching the current search */
@@ -163,7 +165,7 @@ tst_fuzzy_traverse(tst_node_t * p, int (*callback)(void *), int first_call,
w1s[0] = p->splitchar;
w2s[0] = w;
- if (wcscasecmp(w1s, w2s) == 0)
+ if (xwcscasecmp(w1s, w2s) == 0)
{
ll_node_t * node;
sub_tst_t * sub_tst_data;