extern LK(lock_font_draw); // for freetype2 API calls
extern LK(lock_bidi); // for fribidi API calls
extern LK(lock_ot); // for harfbuzz calls
-#endif
+# define FTLOCK() LKL(lock_font_draw)
+# define FTUNLOCK() LKU(lock_font_draw)
+
+# define BIDILOCK() LKL(lock_bidi)
+# define BIDIUNLOCK() LKU(lock_bidi)
-# define FTLOCK(x)
-# define FTUNLOCK(x)
+/* Macros for text walking */
+# define OTLOCK() LKL(lock_ot)
+# define OTUNLOCK() LKU(lock_ot)
+#else
+# define FTLOCK()
+# define FTUNLOCK()
# define BIDILOCK()
# define BIDIUNLOCK()
/* Macros for text walking */
# define OTLOCK()
# define OTUNLOCK()
+#endif
void evas_common_font_source_unload(RGBA_Font_Source *fs);
void evas_common_font_source_reload(RGBA_Font_Source *fs);