summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2021-10-24 20:45:56 +0300
committerEli Zaretskii <eliz@gnu.org>2021-10-24 20:45:56 +0300
commit3bad61e1ac5244efb4fff6062763ea759e0aafec (patch)
treebafb349ba79b3eee04f58ef53936a04f0797f803 /lib-src
parentbeb265450c01b3e3188f844ff0fb961d9df79071 (diff)
downloademacs-3bad61e1ac5244efb4fff6062763ea759e0aafec.tar.gz
Fix compilation errors with MinGW64 GCC 11
* lib-src/ntlib.c (IS_DIRECTORY_SEP): Remove redundant macro. * lib-src/ntlib.c (DEFER_MS_W32_H): * nt/addpm.c (DEFER_MS_W32_H): * nt/cmdproxy.c (DEFER_MS_W32_H): * nt/ddeclient.c (DEFER_MS_W32_H): * nt/preprep.c (DEFER_MS_W32_H): * nt/runemacs.c (DEFER_MS_W32_H): Fix a typo. * nt/Makefile.in (BASE_CFLAGS): Add -I switches to pick up config.h and lib/attribute.h.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ntlib.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib-src/ntlib.c b/lib-src/ntlib.c
index f1c68cb1b2a..c8bcf742fea 100644
--- a/lib-src/ntlib.c
+++ b/lib-src/ntlib.c
@@ -20,7 +20,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
-#define DEFER_MS_W3_H
+#define DEFER_MS_W32_H
#include <config.h>
#include <windows.h>
@@ -290,9 +290,6 @@ is_exec (const char * name)
stricmp (p, ".cmd") == 0));
}
-/* FIXME? This is in configure.ac now - is this still needed? */
-#define IS_DIRECTORY_SEP(x) ((x) == '/' || (x) == '\\')
-
/* We need stat/fsfat below because nt/inc/sys/stat.h defines struct
stat that is incompatible with the MS run-time libraries. */
int