include: declare uv_cpu_times_s in higher scope
This fixes a C/C++ ambiguity about whether this structure is scoped or global. PR-URL: https://github.com/libuv/libuv/pull/1888 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
06cb00c84f
commit
02fc10918c
16
include/uv.h
16
include/uv.h
@ -1004,16 +1004,18 @@ UV_EXTERN int uv_queue_work(uv_loop_t* loop,
|
||||
UV_EXTERN int uv_cancel(uv_req_t* req);
|
||||
|
||||
|
||||
struct uv_cpu_times_s {
|
||||
uint64_t user;
|
||||
uint64_t nice;
|
||||
uint64_t sys;
|
||||
uint64_t idle;
|
||||
uint64_t irq;
|
||||
};
|
||||
|
||||
struct uv_cpu_info_s {
|
||||
char* model;
|
||||
int speed;
|
||||
struct uv_cpu_times_s {
|
||||
uint64_t user;
|
||||
uint64_t nice;
|
||||
uint64_t sys;
|
||||
uint64_t idle;
|
||||
uint64_t irq;
|
||||
} cpu_times;
|
||||
struct uv_cpu_times_s cpu_times;
|
||||
};
|
||||
|
||||
struct uv_interface_address_s {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user