yang parser MAINTENANCE undef local macros
diff --git a/src/parser_yang.c b/src/parser_yang.c
index 0059c46..df54dad 100644
--- a/src/parser_yang.c
+++ b/src/parser_yang.c
@@ -921,6 +921,10 @@
         break;
     }
 
+#undef IF_KW
+#undef IF_KW_PREFIX
+#undef IF_KW_PREFIX_END
+
     if (*kw != YANG_NONE) {
         /* make sure we have the whole keyword */
         switch (**data) {