diff --git a/src/hb-config.hh b/src/hb-config.hh
index 86f7b0105..836d0cdb1 100644
--- a/src/hb-config.hh
+++ b/src/hb-config.hh
@@ -50,7 +50,7 @@
 #define HB_NO_GETENV
 #define HB_NO_MATH
 #define HB_NO_NAME
-#define HB_NO_OT_LAYOUT_UNUSED
+#define HB_NO_LAYOUT_UNUSED
 #endif
 
 #ifdef HB_MINI
diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc
index acc996158..f5c11d8b3 100644
--- a/src/hb-ot-layout.cc
+++ b/src/hb-ot-layout.cc
@@ -335,7 +335,7 @@ hb_ot_layout_get_attach_points (hb_face_t      *face,
 				unsigned int   *point_count /* IN/OUT */,
 				unsigned int   *point_array /* OUT */)
 {
-#ifdef HB_NO_OT_LAYOUT_UNUSED
+#ifdef HB_NO_LAYOUT_UNUSED
   if (point_count)
     *point_count = 0;
   return 0;
@@ -370,7 +370,7 @@ hb_ot_layout_get_ligature_carets (hb_font_t      *font,
 				  unsigned int   *caret_count /* IN/OUT */,
 				  hb_position_t  *caret_array /* OUT */)
 {
-#ifdef HB_NO_OT_LAYOUT_UNUSED
+#ifdef HB_NO_LAYOUT_UNUSED
   if (caret_count)
     *caret_count = 0;
   return 0;