gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 2449eab9ce1d8515cb9d44534f2981802fdf19c8 parent 8ae764d236b1507dbcca48372e3bc52a44ad4f63 Author: Toxa <untoxa@mail.ru> Date: Wed, 8 May 2024 17:07:01 +0300 use REENTRANT wrapper macro instead of __reentrant SDCC attribute Diffstat:
| M | gbdk-lib/libc/bsearch.c | 2 | +- |
| M | gbdk-lib/libc/qsort.c | 2 | +- |
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gbdk-lib/libc/bsearch.c b/gbdk-lib/libc/bsearch.c @@ -28,7 +28,7 @@ #include <stdlib.h> -void *bsearch(const void *key, const void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *) __reentrant) +void *bsearch(const void *key, const void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *) REENTRANT) { for(const char *left = base; nmemb;) { diff --git a/gbdk-lib/libc/qsort.c b/gbdk-lib/libc/qsort.c @@ -45,7 +45,7 @@ static void swap(void *restrict dst, void *restrict src, size_t n) } } -void qsort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *) __reentrant) +void qsort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *) REENTRANT) { unsigned char *b = base;
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.