From 93bd422ecec2519c5f3d0df73c0ac9cc7b18442b Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 9 Jul 2019 18:04:29 +0300 Subject: [PATCH] Unbreak the MS-Windows build * src/font.c (open): Don't undef on WINDOWSNT, as ms-w32.h redirects it to sys_open. --- src/font.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/font.c b/src/font.c index 457f3f99583..ffd50644930 100644 --- a/src/font.c +++ b/src/font.c @@ -46,7 +46,9 @@ along with GNU Emacs. If not, see . */ /* Avoid macro definition of `open' in generated lib/fcntl.h to mess up use of it as a struct member. */ +#ifndef WINDOWSNT #undef open +#endif #define DEFAULT_ENCODING Qiso8859_1 -- 2.39.5