summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2022-12-15 14:07:24 -0600
committersanine-a <sanine.not@pm.me>2022-12-15 14:07:24 -0600
commitd301084c27812519de466fc905af3e85d928b737 (patch)
tree063ea303baa089279c4e0ace7bf12cad7c050fe3 /tests
parent9bc220eb2ba77e6a7184d7b63f086e6a268b75e3 (diff)
fix compile errors for msvc
Diffstat (limited to 'tests')
-rw-r--r--tests/macro-tests.c5
1 files changed, 3 insertions, 2 deletions
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 <string.h>
#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 };