diff options
| author | Mosder <git@mosder.eu> | 2026-09-16 23:47:49 +0200 |
|---|---|---|
| committer | Mosder <git@mosder.eu> | 2026-09-16 23:47:49 +0200 |
| commit | 644130802a51d91b90e85a0769f642c3e0203aef (patch) | |
| tree | ad97ac1da8541a440a86c4c99402354bd94b06ca /tests | |
| parent | 4af9b2a86ad5f5b7e59ba882aa527ecead75be0e (diff) | |
feat: added a simple compatibbility layer for functions not from C99 standard
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ds/hashmap_tests.c | 3 | ||||
| -rw-r--r-- | tests/string_tests.c | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/ds/hashmap_tests.c b/tests/ds/hashmap_tests.c index 268bc29..822ee2a 100644 --- a/tests/ds/hashmap_tests.c +++ b/tests/ds/hashmap_tests.c @@ -1,4 +1,5 @@ -#define _GNU_SOURCE +#include "compat.h" + #define MOS_HM_LOAD_FACTOR 100 #include "hashmap_tests.h" #include "moslib/ds/hashmap.h" diff --git a/tests/string_tests.c b/tests/string_tests.c index f600400..eaa9498 100644 --- a/tests/string_tests.c +++ b/tests/string_tests.c @@ -1,6 +1,7 @@ -#define _XOPEN_SOURCE 600 -#include "string_tests.h" +#include "compat.h" + #include "moslib/string.h" +#include "string_tests.h" #include <stdlib.h> #include <string.h> |
