extern reg_syntax_t re_syntax_options;
#ifdef emacs
+# include "lisp.h"
/* In Emacs, this is the string or buffer in which we
are matching. It is used for looking up syntax properties. */
extern Lisp_Object re_match_object;
# define re_wctype_to_bit(cc) 0
#else
# define CHAR_CLASS_MAX_LENGTH 9 /* Namely, `multibyte'. */
-# define btowc(c) c
+# ifndef emacs
+# define btowc(c) c
+# endif
/* Character classes. */
typedef enum { RECC_ERROR = 0,