diff --git a/base/platform/linux/base_linux_glibmm_helper.h b/base/platform/linux/base_linux_glibmm_helper.h index 61997f9b..864fe53a 100644 --- a/base/platform/linux/base_linux_glibmm_helper.h +++ b/base/platform/linux/base_linux_glibmm_helper.h @@ -10,11 +10,16 @@ #include -#if LONG_TYPE_SIZE == 64 namespace Glib { +struct Int64Helper0 {}; +using Int64Helper = std::conditional_t, Int64Helper0, int64>; + +struct UInt64Helper0 {}; +using UInt64Helper = std::conditional_t, UInt64Helper0, uint64>; + template <> -class Variant : public VariantBase { +class Variant : public VariantBase { public: using CType = gint64; @@ -58,7 +63,7 @@ class Variant : public VariantBase { }; template <> -class Variant : public VariantBase { +class Variant : public VariantBase { public: using CType = guint64; @@ -102,7 +107,6 @@ class Variant : public VariantBase { }; } // namespace Glib -#endif // LONG_TYPE_SIZE == 64 namespace base { namespace Platform {