[HarfBuzz] compilation error of 0.9.26 with MinGW

Werner LEMBERG wl at gnu.org
Tue Feb 4 17:37:39 CET 2014


Using MinGW's gcc compiler version 4.8.1, I get the following
compilation error of HarfBuzz 0.9.26:


CXX      libharfbuzz_la-hb-common.lo
In file included from hb-object-private.hh:37:0,
                 from hb-common.cc:32:
hb-common.cc: In function 'hb_language_item_t* lang_find_or_insert(const char*)':
hb-atomic-private.hh:61:47: error: expected primary-expression before ')' token
 #define hb_atomic_ptr_get(P)  (MemoryBarrier (), (void *) *(P))
                                               ^
hb-common.cc:252:59: note: in expansion of macro 'hb_atomic_ptr_get'
   hb_language_item_t *first_lang = (hb_language_item_t *) hb_atomic_ptr_get (&langs);
                                                           ^
hb-common.cc: In function 'const hb_language_impl_t* hb_language_get_default()':
hb-atomic-private.hh:61:47: error: expected primary-expression before ')' token
 #define hb_atomic_ptr_get(P)  (MemoryBarrier (), (void *) *(P))
                                               ^
hb-common.cc:341:44: note: in expansion of macro 'hb_atomic_ptr_get'
   hb_language_t language = (hb_language_t) hb_atomic_ptr_get (&default_language);
                                            ^

Any quick fix?


    Werner


More information about the HarfBuzz mailing list