summaryrefslogtreecommitdiff
path: root/firmware/include/stdlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/include/stdlib.h')
-rw-r--r--firmware/include/stdlib.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/firmware/include/stdlib.h b/firmware/include/stdlib.h
new file mode 100644
index 0000000000..ab07a3116e
--- /dev/null
+++ b/firmware/include/stdlib.h
@@ -0,0 +1,35 @@
1/*
2 * stdlib.h
3 *
4 * Definitions for common types, variables, and functions.
5 */
6
7#ifndef _STDLIB_H_
8#ifdef __cplusplus
9extern "C" {
10#endif
11#define _STDLIB_H_
12
13#include "_ansi.h"
14
15#define __need_size_t
16#define __need_wchar_t
17#include <stddef.h>
18
19#ifndef NULL
20#define NULL 0
21#endif
22
23#define EXIT_FAILURE 1
24#define EXIT_SUCCESS 0
25
26extern __IMPORT int __mb_cur_max;
27
28#define MB_CUR_MAX __mb_cur_max
29
30_VOID _EXFUN(qsort,(_PTR __base, size_t __nmemb, size_t __size, int(*_compar)(const _PTR, const _PTR)));
31
32#ifdef __cplusplus
33}
34#endif
35#endif /* _STDLIB_H_ */