contrib: fixed c++ compatibility of unix port

This commit is contained in:
Sebastian Michel
2024-01-04 08:31:28 +01:00
committed by goldsimon
parent 347054b329
commit e1b8080346
9 changed files with 72 additions and 0 deletions

View File

@@ -34,6 +34,10 @@
#include <sys/times.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifdef PERF
#define PERF_START { \
unsigned long __c1l, __c1h, __c2l, __c2h; \
@@ -60,4 +64,8 @@ void perf_print_times(struct tms *start, struct tms *end, char *key);
void perf_init(char *fname);
#ifdef __cplusplus
}
#endif
#endif /* LWIP_ARCH_PERF_H */