Fix 'struct timespec declared inside parameter list' MinGW warning.
From pbatard branch.
This commit is contained in:
@@ -29,6 +29,14 @@
|
|||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
|
#ifndef HAVE_STRUCT_TIMESPEC
|
||||||
|
#define HAVE_STRUCT_TIMESPEC
|
||||||
|
struct timespec {
|
||||||
|
time_t tv_sec; /* Seconds */
|
||||||
|
long tv_nsec; /* Nanoseconds */
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|||||||
Reference in New Issue
Block a user