2020-04-02 02:22:39 +02:00
|
|
|
/*
|
|
|
|
* Copyright 2020 Haiku, Inc. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Isaac Turner, turner.isaac@gmail.com
|
|
|
|
* Jacob Secunda, secundaja@gmail.com
|
|
|
|
*/
|
|
|
|
#ifndef _GNU_STDLIB_H_
|
|
|
|
#define _GNU_STDLIB_H_
|
|
|
|
|
|
|
|
|
|
|
|
#include_next <stdlib.h>
|
2024-09-16 19:33:23 +02:00
|
|
|
#include <features.h>
|
2020-04-02 02:22:39 +02:00
|
|
|
|
|
|
|
|
2024-09-16 19:33:23 +02:00
|
|
|
#ifdef _DEFAULT_SOURCE
|
2020-04-02 02:22:39 +02:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef int (*_compare_function_qsort_r)(const void*, const void*, void*);
|
|
|
|
|
|
|
|
extern void qsort_r(void* base, size_t numElements, size_t sizeOfElement,
|
|
|
|
_compare_function_qsort_r, void* cookie);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2024-09-16 19:33:23 +02:00
|
|
|
#endif /* _DEFAULT_SOURCE */
|
2020-04-02 02:22:39 +02:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* _GNU_STDLIB_H_ */
|