mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/avr8_common: fix C++ compatibility of unistd.h
C++ does not know about `restrict`, but both g++ and clang++ support `__restrict`, as do `clang` and GCC [1]. Using `__restrict` instead of `restrict` is also what glibc does. [1]: https://en.wikipedia.org/wiki/Restrict#Support_by_C++_compilers
This commit is contained in:
parent
75828d2883
commit
5fe7a2e44b
@ -80,8 +80,8 @@ int pipe(int [2]);
|
||||
ssize_t pread(int, void *, size_t, off_t);
|
||||
ssize_t pwrite(int, const void *, size_t, off_t);
|
||||
ssize_t read(int, void *, size_t);
|
||||
ssize_t readlink(const char *restrict, char *restrict, size_t);
|
||||
ssize_t readlinkat(int, const char *restrict, char *restrict, size_t);
|
||||
ssize_t readlink(const char *__restrict, char *__restrict, size_t);
|
||||
ssize_t readlinkat(int, const char *__restrict, char *__restrict, size_t);
|
||||
int rmdir(const char *);
|
||||
int setegid(gid_t);
|
||||
int seteuid(uid_t);
|
||||
|
Loading…
Reference in New Issue
Block a user