[libdazzle: 1/2] Include counter headers not for Win32.




commit 7a42701011425d821044ecd5ed8ee9d47cadd216
Author: Biswapriyo Nath <nathbappai gmail com>
Date:   Tue Apr 20 01:23:39 2021 +0530

    Include counter headers not for Win32.

 src/dazzle.h         | 8 ++++++--
 src/util/meson.build | 1 +
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/dazzle.h b/src/dazzle.h
index b206337..900ce3c 100644
--- a/src/dazzle.h
+++ b/src/dazzle.h
@@ -133,7 +133,9 @@ G_BEGIN_DECLS
 #include "tree/dzl-tree-types.h"
 #include "util/dzl-cairo.h"
 #include "util/dzl-cancellable.h"
-#include "util/dzl-counter.h"
+#ifndef G_OS_WIN32
+# include "util/dzl-counter.h"
+#endif
 #include "util/dzl-date-time.h"
 #include "util/dzl-dnd.h"
 #include "util/dzl-file-manager.h"
@@ -153,7 +155,9 @@ G_BEGIN_DECLS
 #include "widgets/dzl-box.h"
 #include "widgets/dzl-centering-bin.h"
 #include "widgets/dzl-column-layout.h"
-#include "widgets/dzl-counters-window.h"
+#ifndef G_OS_WIN32
+# include "widgets/dzl-counters-window.h"
+#endif
 #include "widgets/dzl-elastic-bin.h"
 #include "widgets/dzl-empty-state.h"
 #include "widgets/dzl-entry-box.h"
diff --git a/src/util/meson.build b/src/util/meson.build
index 19cc951..b267773 100644
--- a/src/util/meson.build
+++ b/src/util/meson.build
@@ -36,6 +36,7 @@ util_sources = [
 ]
 
 # No counters if building on win32 for now.
+# When avaiable remove G_OS_WIN32 checks in src/dazzel.h.
 # They need explicit porting to that platform and should
 # probably just wrap the eventtrace API or something.
 if host_machine.system() != 'windows'


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