mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 19:24:33 +02:00
newlib: remove usage of pre-ANSI defines
This commit is contained in:
@@ -75,7 +75,7 @@ struct syscall_stub_table
|
|||||||
int (*_lock_try_acquire_recursive)(_lock_t *lock);
|
int (*_lock_try_acquire_recursive)(_lock_t *lock);
|
||||||
void (*_lock_release)(_lock_t *lock);
|
void (*_lock_release)(_lock_t *lock);
|
||||||
void (*_lock_release_recursive)(_lock_t *lock);
|
void (*_lock_release_recursive)(_lock_t *lock);
|
||||||
int (*_printf_float)(struct _reent *data, void *pdata, FILE * fp, int (*pfunc) (struct _reent *, FILE *, _CONST char *, size_t len), va_list * ap);
|
int (*_printf_float)(struct _reent *data, void *pdata, FILE * fp, int (*pfunc) (struct _reent *, FILE *, const char *, size_t len), va_list * ap);
|
||||||
int (*_scanf_float) (struct _reent *rptr, void *pdata, FILE *fp, va_list *ap);
|
int (*_scanf_float) (struct _reent *rptr, void *pdata, FILE *fp, va_list *ap);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -22,8 +22,8 @@ extern "C" {
|
|||||||
|
|
||||||
#include_next <sys/unistd.h>
|
#include_next <sys/unistd.h>
|
||||||
|
|
||||||
int _EXFUN(truncate, (const char *, off_t __length));
|
int truncate(const char *, off_t __length);
|
||||||
int _EXFUN(gethostname, (char *__name, size_t __len));
|
int gethostname(char *__name, size_t __len);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@@ -25,9 +25,9 @@ extern "C" {
|
|||||||
#define CLOCK_MONOTONIC (clockid_t)4
|
#define CLOCK_MONOTONIC (clockid_t)4
|
||||||
#define CLOCK_BOOTTIME (clockid_t)4
|
#define CLOCK_BOOTTIME (clockid_t)4
|
||||||
|
|
||||||
int _EXFUN(clock_settime, (clockid_t clock_id, const struct timespec *tp));
|
int clock_settime(clockid_t clock_id, const struct timespec *tp);
|
||||||
int _EXFUN(clock_gettime, (clockid_t clock_id, struct timespec *tp));
|
int clock_gettime(clockid_t clock_id, struct timespec *tp);
|
||||||
int _EXFUN(clock_getres, (clockid_t clock_id, struct timespec *res));
|
int clock_getres(clockid_t clock_id, struct timespec *res);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@@ -32,7 +32,7 @@ static struct _reent s_reent;
|
|||||||
extern int _printf_float(struct _reent *rptr,
|
extern int _printf_float(struct _reent *rptr,
|
||||||
void *pdata,
|
void *pdata,
|
||||||
FILE * fp,
|
FILE * fp,
|
||||||
int (*pfunc) (struct _reent *, FILE *, _CONST char *, size_t len),
|
int (*pfunc) (struct _reent *, FILE *, const char *, size_t len),
|
||||||
va_list * ap);
|
va_list * ap);
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user