Fix 'incomplete prototype' compiler warnings on SunOS.
This commit is contained in:
parent
062af9fea8
commit
6cc241ac7a
21
include/uv.h
21
include/uv.h
@ -96,17 +96,6 @@ void uv_unref();
|
||||
void uv_update_time();
|
||||
int64_t uv_now();
|
||||
|
||||
/*
|
||||
* Most functions return boolean: 0 for success and -1 for failure.
|
||||
* On error the user should then call uv_last_error() to determine
|
||||
* the error code.
|
||||
*/
|
||||
uv_err_t uv_last_error();
|
||||
char* uv_strerror(uv_err_t err);
|
||||
const char* uv_err_name(uv_err_t err);
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* The status parameter is 0 if the request completed successfully,
|
||||
@ -217,6 +206,16 @@ struct uv_err_s {
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
* Most functions return boolean: 0 for success and -1 for failure.
|
||||
* On error the user should then call uv_last_error() to determine
|
||||
* the error code.
|
||||
*/
|
||||
uv_err_t uv_last_error();
|
||||
char* uv_strerror(uv_err_t err);
|
||||
const char* uv_err_name(uv_err_t err);
|
||||
|
||||
|
||||
#define UV_REQ_FIELDS \
|
||||
/* read-only */ \
|
||||
uv_req_type type; \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user