[wing] Add wing_is_os_64bit



commit 7d5e244cf97d85a527817476b755fabc58b10739
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Thu May 12 12:20:42 2016 +0200

    Add wing_is_os_64bit

 wing/wingutils.c |   10 ++++++++++
 wing/wingutils.h |    3 +++
 2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/wing/wingutils.c b/wing/wingutils.c
index c5c405d..c743386 100644
--- a/wing/wingutils.c
+++ b/wing/wingutils.c
@@ -37,6 +37,16 @@ wing_is_wow_64 (void)
 }
 
 gboolean
+wing_is_os_64bit (void)
+{
+#ifdef _WIN64
+  return TRUE;
+#else
+  return wing_is_wow_64 ();
+#endif
+}
+
+gboolean
 wing_get_version_number (gint *major,
                          gint *minor)
 {
diff --git a/wing/wingutils.h b/wing/wingutils.h
index f5e665d..390ad20 100644
--- a/wing/wingutils.h
+++ b/wing/wingutils.h
@@ -27,6 +27,9 @@ WING_AVAILABLE_IN_ALL
 gboolean     wing_is_wow_64            (void);
 
 WING_AVAILABLE_IN_ALL
+gboolean     wing_is_os_64bit          (void);
+
+WING_AVAILABLE_IN_ALL
 gboolean     wing_get_version_number   (gint *major,
                                         gint *minor);
 


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