Unbreak builds
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 23 Oct 2018 04:49:42 +0000 (21:49 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 23 Oct 2018 04:49:42 +0000 (21:49 -0700)
src/hb-dsalgs.hh
src/hb-open-type.hh

index 11a0550..7e84616 100644 (file)
@@ -537,7 +537,7 @@ struct hb_array_t
   T *arrayZ;
   unsigned int len;
 };
-template <typename T>
+template <typename T> static inline
 hb_array_t<T> hb_array (T *array, unsigned int len) { return hb_array_t<T> (array, len); }
 
 struct hb_bytes_t
index a76b111..2b1b432 100644 (file)
@@ -386,10 +386,10 @@ struct UnsizedArrayOf
   DEFINE_SIZE_ARRAY (0, arrayZ);
 };
 } /* namespace OT */
-template <typename T>
+template <typename T> static inline
 hb_array_t<T> hb_array (OT::UnsizedArrayOf<T> &array, unsigned int len)
 { return hb_array (array.arrayZ, len); }
-template <typename T>
+template <typename T> static inline
 hb_array_t<const T> hb_array (const OT::UnsizedArrayOf<T> &array, unsigned int len)
 { return hb_array (array.arrayZ, len); }
 namespace OT {