From 79a5e0a65eabd0920cb06c9edddd837b75657671 Mon Sep 17 00:00:00 2001 From: tavmem Date: Tue, 10 Mar 2020 19:49:05 -0400 Subject: [PATCH] fix #581: \\[cmd] fails --- Makefile | 2 +- src/tests.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 19838e63..319c1d6b 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ DEVFLAGS = -O0 -g3 -DDEBUG -Wall OS := $(shell uname -s | tr "[:upper:]" "[:lower:]") # Win-64 -ifeq (msys_nt-10.0,$(OS)) +ifeq (msys_nt-10.0-18363,$(OS)) CC=gcc -DWIN32=1 PRODFLAGS += -D_FILE_OFFSET_BITS=64 LDFLAGS = -lws2_32 -static -lpthread diff --git a/src/tests.c b/src/tests.c index e67bcb3e..8be0b596 100644 --- a/src/tests.c +++ b/src/tests.c @@ -1109,9 +1109,15 @@ Z I testsBook() TC(" abcd", 7$`abcd) TC(" 2.35", 7.2 $ 2.345) TC(" 714.00", 7.2 $ 714) + #ifndef WIN32 TC("1.2e-34", $ 1.2e-34) TC("2.35e+00 " , -9.2 $ 2.345) TC("7.14e+02 " , -9.2 $ 714) + #else + TC("1.2e-034", $ 1.2e-34) + TC("2.35e+000", $ -9.2 $ 2.345) + TC("7.14e+002", $ -9.2 $ 714) + #endif TC(27, 0$"27") TC(3.4, 0.0$"3.4") TC(27.0 , 0.0$"27")