diff --git a/src/hb-object-private.hh b/src/hb-object-private.hh index 95847b9cc..fcdc9256d 100644 --- a/src/hb-object-private.hh +++ b/src/hb-object-private.hh @@ -33,6 +33,8 @@ #define HB_OBJECT_PRIVATE_HH #include "hb-private.hh" +#include "hb-atomic-private.hh" +#include "hb-mutex-private.hh" /* reference_count */ diff --git a/src/hb-private.hh b/src/hb-private.hh index 3520919fe..ff339df4d 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh @@ -599,11 +599,12 @@ _hb_memalign(void **memptr, size_t alignment, size_t size) #endif -/* Headers we include for everyone. Specifically ordered to resolve dependencies. */ +/* Headers we include for everyone. Keep sorted. They express dependency amongst + * themselves, but no other file should include them.*/ #include "hb-atomic-private.hh" -#include "hb-mutex-private.hh" -#include "hb-dsalgs.hh" #include "hb-debug.hh" +#include "hb-dsalgs.hh" +#include "hb-mutex-private.hh" #include "hb-object-private.hh" #endif /* HB_PRIVATE_HH */