From c227f558573937f679f88dcb2d6d7df2cbc161fd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Tue, 10 Apr 2018 11:50:03 +0200 Subject: [PATCH] lib/generic/trie: avoid uint redefinition Well, we could e.g require C11 instead of C99, but this one is easy. --- lib/generic/trie.c | 3 +++ lib/generic/trie.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/generic/trie.c b/lib/generic/trie.c index 77924bcfc..b14b13c6e 100644 --- a/lib/generic/trie.c +++ b/lib/generic/trie.c @@ -47,7 +47,10 @@ #endif typedef unsigned char byte; +#ifndef uint typedef unsigned int uint; +#define uint uint +#endif typedef uint bitmap_t; /*! Bit-maps, using the range of 1<<0 to 1<<16 (inclusive). */ typedef struct { diff --git a/lib/generic/trie.h b/lib/generic/trie.h index da79a543a..e4e1a2108 100644 --- a/lib/generic/trie.h +++ b/lib/generic/trie.h @@ -31,7 +31,7 @@ * * XXX EDITORS: trie.{h,c} are synced from * https://gitlab.labs.nic.cz/knot/knot-dns/tree/68352fc969/src/contrib/qp-trie - * only with #includes adjusted. + * only with tiny adjustments, mostly #includes. */ /*! \brief Element value. */ -- 2.47.2