commit 32783675fcb157360fa57ac54b694eed3b854e85
parent ad077e6cbd23f4091318ed91da7abdf8e10ef653
Author: Henrik RydgÄrd <hrydgard@gmail.com>
Date: Mon, 31 Jul 2023 13:47:43 +0200
More fixing. Though I still don't understand why the test fails.
Diffstat:
4 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/naett.c b/naett.c
@@ -20,7 +20,7 @@
#endif
#ifdef _MSC_VER
- #define min(a, b) (((a) < (b)) ? (a) : (b))
+ #define min(a,b) (((a) < (b)) ? (a) : (b))
#endif
#if __linux__ && !__ANDROID__
diff --git a/src/naett_internal.h b/src/naett_internal.h
@@ -16,7 +16,7 @@
#endif
#ifdef _MSC_VER
- #define min(a,b) (((a)<(b))?(a):(b))
+ #define min(a,b) (((a) < (b)) ? (a) : (b))
#endif
#if __linux__ && !__ANDROID__
diff --git a/testrig/Makefile b/testrig/Makefile
@@ -1,6 +1,7 @@
CFLAGS = -I.. -g -Wall -pedantic -DINCLUDE_MAIN
ifeq ($(OS),Windows_NT)
+ CFLAGS += -DUNICODE
LDFLAGS = -lwinhttp
else
UNAME_S := $(shell uname -s)
diff --git a/testrig/test.c b/testrig/test.c
@@ -8,7 +8,7 @@
#include <android/log.h>
#define LOG(...) ((void)__android_log_print(ANDROID_LOG_INFO, "naett", __VA_ARGS__))
#else
-#define LOG(...) printf
+#define LOG(...) printf(__VA_ARGS__)
#endif // __ANDROID__
int fail(const char* where, const char* message) {