[libdazzle] build: a few more mingw build fixes



commit de7ceae98fce5ea61121aea3a0f5c54d93e9a1fe
Author: Christian Hergert <chergert redhat com>
Date:   Fri Sep 8 13:02:25 2017 -0700

    build: a few more mingw build fixes

 src/search/dzl-trie.c |    4 ++--
 tools/meson.build     |    3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/search/dzl-trie.c b/src/search/dzl-trie.c
index 3b29619..30721f9 100644
--- a/src/search/dzl-trie.c
+++ b/src/search/dzl-trie.c
@@ -22,8 +22,8 @@
 
 #include "dzl-trie.h"
 
-#if defined(__LP64__) || __WORDSIZE == 64 || defined(_WIN64)
-#define TRIE_64 1
+#if defined(__LP64__) || defined(_WIN64)
+# define TRIE_64 1
 #endif
 
 #define STATIC_ASSERT(a)                              \
diff --git a/tools/meson.build b/tools/meson.build
index 341d566..a64a152 100644
--- a/tools/meson.build
+++ b/tools/meson.build
@@ -1,8 +1,11 @@
 if get_option('enable_tools')
 
+# Counters are UNIX-systems only currently
+if host_machine.system() != 'windows'
 dazzle_list_counters = executable('dazzle-list-counters', 'dazzle-list-counters.c',
   dependencies: libdazzle_deps + [libdazzle_dep],
        install: true,
 )
+endif
 
 endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]