From d301084c27812519de466fc905af3e85d928b737 Mon Sep 17 00:00:00 2001 From: sanine-a Date: Thu, 15 Dec 2022 14:07:24 -0600 Subject: fix compile errors for msvc --- tests/macro-tests.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/macro-tests.c b/tests/macro-tests.c index 81a2932..d08b567 100644 --- a/tests/macro-tests.c +++ b/tests/macro-tests.c @@ -1,3 +1,4 @@ +#include #include "lily-test.h" #include "tests.h" @@ -5,7 +6,7 @@ const char * test_LILY_LOCATION() { /* do NOT move the following line, or this test will break! */ - if (strcmp(LILY_LOCATION, "tests/macro-tests.c:8") != 0) { + if (strcmp(LILY_LOCATION, "tests/macro-tests.c:8") != 0 && strcmp(LILY_LOCATION, "tests\\macro-tests.c:8") != 0) { return "LILY_LOCATION refers to the wrong location!"; } return 0; @@ -303,7 +304,7 @@ const char * test_LILY_COUNTER_DECREMENT() } -LILY_FILE_BEGIN() +LILY_FILE_BEGIN(unique_identifier) int array[3] = { 0, 0, 0 }; -- cgit v1.2.1