newlib: remove usage of pre-ANSI defines

This commit is contained in:
Ivan Grokhotkov
2019-03-19 19:57:20 +08:00
parent ac612b5422
commit 068b700786
4 changed files with 7 additions and 7 deletions
@@ -22,8 +22,8 @@ extern "C" {
#include_next <sys/unistd.h>
int _EXFUN(truncate, (const char *, off_t __length));
int _EXFUN(gethostname, (char *__name, size_t __len));
int truncate(const char *, off_t __length);
int gethostname(char *__name, size_t __len);
#ifdef __cplusplus
}
+3 -3
View File
@@ -25,9 +25,9 @@ extern "C" {
#define CLOCK_MONOTONIC (clockid_t)4
#define CLOCK_BOOTTIME (clockid_t)4
int _EXFUN(clock_settime, (clockid_t clock_id, const struct timespec *tp));
int _EXFUN(clock_gettime, (clockid_t clock_id, struct timespec *tp));
int _EXFUN(clock_getres, (clockid_t clock_id, struct timespec *res));
int clock_settime(clockid_t clock_id, const struct timespec *tp);
int clock_gettime(clockid_t clock_id, struct timespec *tp);
int clock_getres(clockid_t clock_id, struct timespec *res);
#ifdef __cplusplus
}