summaryrefslogtreecommitdiff
path: root/firmware/include/stdlib.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-06-15 15:49:32 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-06-15 15:49:32 +0000
commit7da93d58fdc73c40a721f9f1c7d7a42609e10a53 (patch)
treee16719bcc03f98a1ed0c211a8d381d029bbfc515 /firmware/include/stdlib.h
parent4f58f6197d8aba3ddbb6976521ea9f814ae1738d (diff)
downloadrockbox-7da93d58fdc73c40a721f9f1c7d7a42609e10a53.zip
rockbox-7da93d58fdc73c40a721f9f1c7d7a42609e10a53.tar.gz
rockbox-7da93d58fdc73c40a721f9f1c7d7a42609e10a53.tar.bz2
rockbox-7da93d58fdc73c40a721f9f1c7d7a42609e10a53.tar.xz
This is my initial attempt to get rid of the newlib headers requirement,
for gcc built without newlib. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1017 a1c6a512-1295-4272-9138-f99709370657
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 0000000..ab07a31
--- /dev/null
+++ b/firmware/include/stdlib.h
@@ -0,0 +1,35 @@
+/*
+ * stdlib.h
+ *
+ * Definitions for common types, variables, and functions.
+ */
+
+#ifndef _STDLIB_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+#define _STDLIB_H_
+
+#include "_ansi.h"
+
+#define __need_size_t
+#define __need_wchar_t
+#include <stddef.h>
+
+#ifndef NULL
+#define NULL 0
+#endif
+
+#define EXIT_FAILURE 1
+#define EXIT_SUCCESS 0
+
+extern __IMPORT int __mb_cur_max;
+
+#define MB_CUR_MAX __mb_cur_max
+
+_VOID _EXFUN(qsort,(_PTR __base, size_t __nmemb, size_t __size, int(*_compar)(const _PTR, const _PTR)));
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* _STDLIB_H_ */