]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lib/generic/trie: avoid uint redefinition
authorVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 10 Apr 2018 09:50:03 +0000 (11:50 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 12 Apr 2018 15:49:03 +0000 (17:49 +0200)
Well, we could e.g require C11 instead of C99, but this one is easy.

lib/generic/trie.c
lib/generic/trie.h

index 77924bcfcfba8a2fabf6e6731000177f173525f8..b14b13c6e73b9c60e7d6567a23e6f0e326a454f7 100644 (file)
 #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 {
index da79a543a50981405cc7ab6ce1f3e4048846e121..e4e1a21080594872ea7959a3c98d76394509415f 100644 (file)
@@ -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. */