From 48ecfcf4113be2dbfb7419ff82c3dc9abfc9e663 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 18 Nov 2021 15:42:47 +0900 Subject: [PATCH] [cexpr] Fix a naming issue with uint I didn't notice that uint is defined somewhere on Linux... until I tried compiling for windows (not defined). Use a define to keep the cast function naming nice. --- libs/util/cexpr-type.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/util/cexpr-type.c b/libs/util/cexpr-type.c index 2b2fa70f4..9ecba1804 100644 --- a/libs/util/cexpr-type.c +++ b/libs/util/cexpr-type.c @@ -37,6 +37,9 @@ #include "libs/util/cexpr-parse.h" +#undef uint +#define uint unsigned + #define BINOP(pre, opname, type, op) \ static void \ pre##_##opname (const exprval_t *a, const exprval_t *b, exprval_t *c, \