Err, instead of warn, if mutex / atomic / unicode funcs are missing
Hopefully this results in fewer badly built HarfBuzz integrations.
This commit is contained in:
parent
fc3c59a1d7
commit
cdcdfe61b9
|
@ -147,11 +147,11 @@ hb_unicode_funcs_get_default (void)
|
||||||
|
|
||||||
#if !defined(HB_NO_UNICODE_FUNCS) && defined(HB_UNICODE_FUNCS_NIL)
|
#if !defined(HB_NO_UNICODE_FUNCS) && defined(HB_UNICODE_FUNCS_NIL)
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma message("Could not find any Unicode functions implementation, you have to provide your own")
|
#pragma error("Could not find any Unicode functions implementation, you have to provide your own.")
|
||||||
#pragma message("To suppress this warnings, define HB_NO_UNICODE_FUNCS")
|
#pragma error("Consider building hb-ucdn.c. If you absolutely want to build without any, check the code.")
|
||||||
#else
|
#else
|
||||||
#warning "Could not find any Unicode functions implementation, you have to provide your own"
|
#error "Could not find any Unicode functions implementation, you have to provide your own"
|
||||||
#warning "To suppress this warning, define HB_NO_UNICODE_FUNCS"
|
#error "Consider building hb-ucdn.c. If you absolutely want to build without any, check the code."
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -30,26 +30,20 @@
|
||||||
|
|
||||||
#if defined(HB_ATOMIC_INT_NIL)
|
#if defined(HB_ATOMIC_INT_NIL)
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma message("Could not find any system to define atomic_int macros, library may NOT be thread-safe")
|
#pragma error("Could not find any system to define atomic_int macros, library WILL NOT be thread-safe")
|
||||||
|
#pragma error("Check hb-atomic-private.hh for possible resolutions.")
|
||||||
#else
|
#else
|
||||||
#warning "Could not find any system to define atomic_int macros, library may NOT be thread-safe"
|
#error "Could not find any system to define atomic_int macros, library WILL NOT be thread-safe"
|
||||||
|
#error "Check hb-atomic-private.hh for possible resolutions."
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HB_MUTEX_IMPL_NIL)
|
#if defined(HB_MUTEX_IMPL_NIL)
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma message("Could not find any system to define mutex macros, library may NOT be thread-safe")
|
#pragma error("Could not find any system to define mutex macros, library WILL NOT be thread-safe")
|
||||||
|
#pragma error("Check hb-mutex-private.hh for possible resolutions.")
|
||||||
#else
|
#else
|
||||||
#warning "Could not find any system to define mutex macros, library may NOT be thread-safe"
|
#error "Could not find any system to define mutex macros, library WILL NOT be thread-safe"
|
||||||
|
#error "Check hb-mutex-private.hh for possible resolutions."
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HB_ATOMIC_INT_NIL) || defined(HB_MUTEX_IMPL_NIL)
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma message("To suppress these warnings, define HB_NO_MT")
|
|
||||||
#else
|
|
||||||
#warning "To suppress these warnings, define HB_NO_MT"
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue