mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-04 02:08:30 +00:00
Supplement _GNU_SOURCE with _COSMO_SOURCE
This commit is contained in:
parent
e6b59bced2
commit
7b8024d088
8 changed files with 8 additions and 14 deletions
5
third_party/musl/search.h
vendored
5
third_party/musl/search.h
vendored
|
@ -1,5 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_THIRDPARTY_MUSL_SEARCH_H
|
||||
#define COSMOPOLITAN_THIRDPARTY_MUSL_SEARCH_H
|
||||
/* clang-format off */
|
||||
|
||||
typedef enum { FIND, ENTER } ACTION;
|
||||
typedef enum { preorder, postorder, endorder, leaf } VISIT;
|
||||
|
@ -13,7 +14,7 @@ int hcreate(size_t);
|
|||
void hdestroy(void);
|
||||
ENTRY *hsearch(ENTRY, ACTION);
|
||||
|
||||
#ifdef _GNU_SOURCE
|
||||
#if defined(_GNU_SOURCE) || defined(_COSMO_SOURCE)
|
||||
struct hsearch_data {
|
||||
struct __tab *__tab;
|
||||
unsigned int __unused1;
|
||||
|
@ -38,7 +39,7 @@ void *tfind(const void *, void *const *, int(*)(const void *, const void *));
|
|||
void *tsearch(const void *, void **, int (*)(const void *, const void *));
|
||||
void twalk(const void *, void (*)(const void *, VISIT, int));
|
||||
|
||||
#ifdef _GNU_SOURCE
|
||||
#if defined(_GNU_SOURCE) || defined(_COSMO_SOURCE)
|
||||
struct qelem {
|
||||
struct qelem *q_forw, *q_back;
|
||||
char q_data[1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue