diff --git a/src/lib/salad/bps_tree.h b/src/lib/salad/bps_tree.h
index 8d1a621085770adfee5209935b31f5f44f6401dc..09c3338f1fff209fb44ca20bb53e0671ef665159 100644
--- a/src/lib/salad/bps_tree.h
+++ b/src/lib/salad/bps_tree.h
@@ -6004,6 +6004,7 @@ bps_tree_debug_check_internal_functions(bool assertme)
 #undef BPS_TREE_BRANCH_TRACE
 
 /* {{{ Macros for custom naming of structs and functions */
+#undef _api_name
 #undef _bps
 #undef _bps_tree
 #undef _BPS