KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
stdlib.h
Go to the documentation of this file.
1/* KallistiOS ##version##
2
3 kos/stdlib.h
4 Copyright (C) 2023 Falco Girgis
5*/
6
7/** \file kos/stdlib.h
8 \brief KOS-implementation of select POSIX extensions
9
10 Add select POSIX extensions to stdlib.h which are not present within Newlib.
11
12 \author Falco Girgis
13*/
14
15#ifndef _STDLIB_H_
16#error "Do not include this file directly. Use <stdlib.h> instead."
17#endif /* !_STDLIB_H_ */
18
19#ifndef __KOS_STDLIB_H
20#define __KOS_STDLIB_H
21
22#if !defined(__STRICT_ANSI__) || (_POSIX_C_SOURCE >= 200112L) || \
23 (_XOPEN_SOURCE >= 600)
24
25#include <kos/cdefs.h>
26
27__BEGIN_DECLS
28
29extern int posix_memalign(void **memptr, size_t alignment, size_t size);
30
31__END_DECLS
32
33#endif /* !defined(__STRICT_ANSI__) || (_POSIX_C_SOURCE >= 200112L) ||
34 (_XOPEN_SOURCE >= 600) */
35#endif /* !__KOS_STDLIB_H */
Definitions for builtin attributes and compiler directives.
int posix_memalign(void **memptr, size_t alignment, size_t size)