From: Behdad Esfahbod Date: Mon, 28 Jan 2019 18:41:40 +0000 (-0500) Subject: Try fixing MSVC build X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d592bd16cd6c5ad1ee351d90d213ee2a1ea71b05;p=platform%2Fupstream%2FlibHarfBuzzSharp.git Try fixing MSVC build --- diff --git a/src/hb-algs.hh b/src/hb-algs.hh index cf1c554..d08ee2e 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -31,17 +31,17 @@ #include "hb-null.hh" -static HB_UNUSED const struct hb_identity_ft +static const struct hb_identity_ft { template T operator () (const T& v) const { return v; } -} hb_identity; +} hb_identity HB_UNUSED; -static HB_UNUSED const struct hb_bool_ft +static const struct hb_bool_ft { template bool operator () (const T& v) const { return bool (v); } -} hb_bool; +} hb_bool HB_UNUSED; template struct hb_pair_t @@ -61,17 +61,17 @@ struct hb_pair_t template static inline hb_pair_t hb_pair (T1 a, T2 b) { return hb_pair_t (a, b); } -static HB_UNUSED const struct hb_first_ft +static const struct hb_first_ft { template typename Pair::first_t operator () (const Pair& pair) const { return pair.first; } -} hb_first; +} hb_first HB_UNUSED; -static HB_UNUSED const struct hb_second_ft +static const struct hb_second_ft { template typename Pair::second_t operator () (const Pair& pair) const { return pair.second; } -} hb_second; +} hb_second HB_UNUSED; /*