updated for version 7.0-087
diff --git a/src/macros.h b/src/macros.h
index c4c9a14..a8bc2b8 100644
--- a/src/macros.h
+++ b/src/macros.h
@@ -276,3 +276,9 @@
 # define MB_CHARLEN(p)		STRLEN(p)
 # define PTR2CHAR(p)		((int)*(p))
 #endif
+
+#ifdef FEAT_AUTOCHDIR
+# define DO_AUTOCHDIR if (p_acd) do_autochdir();
+#else
+# define DO_AUTOCHDIR
+#endif