|
@@ -71,32 +71,6 @@ static inline int fsync (int fd)
|
|
|
#endif
|
|
#endif
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
-#ifdef WIN32
|
|
|
|
|
- #ifndef timersub
|
|
|
|
|
- #define timersub(a, b, result) \
|
|
|
|
|
- do { \
|
|
|
|
|
- (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
|
|
|
|
|
- (result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
|
|
|
|
|
- if ((result)->tv_usec < 0) { \
|
|
|
|
|
- --(result)->tv_sec; \
|
|
|
|
|
- (result)->tv_usec += 1000000; \
|
|
|
|
|
- } \
|
|
|
|
|
- } while (0)
|
|
|
|
|
- #endif
|
|
|
|
|
- #ifndef timeradd
|
|
|
|
|
- # define timeradd(a, b, result) \
|
|
|
|
|
- do { \
|
|
|
|
|
- (result)->tv_sec = (a)->tv_sec + (b)->tv_sec; \
|
|
|
|
|
- (result)->tv_usec = (a)->tv_usec + (b)->tv_usec; \
|
|
|
|
|
- if ((result)->tv_usec >= 1000000) \
|
|
|
|
|
- { \
|
|
|
|
|
- ++(result)->tv_sec; \
|
|
|
|
|
- (result)->tv_usec -= 1000000; \
|
|
|
|
|
- } \
|
|
|
|
|
- } while (0)
|
|
|
|
|
- #endif
|
|
|
|
|
-#endif
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_ADL
|
|
#ifdef HAVE_ADL
|
|
|
#include "ADL/adl_sdk.h"
|
|
#include "ADL/adl_sdk.h"
|
|
@@ -180,7 +154,9 @@ static inline int fsync (int fd)
|
|
|
#define unlikely(expr) (expr)
|
|
#define unlikely(expr) (expr)
|
|
|
#define likely(expr) (expr)
|
|
#define likely(expr) (expr)
|
|
|
#endif
|
|
#endif
|
|
|
|
|
+#ifndef __maybe_unused
|
|
|
#define __maybe_unused __attribute__((unused))
|
|
#define __maybe_unused __attribute__((unused))
|
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
#define uninitialised_var(x) x = x
|
|
#define uninitialised_var(x) x = x
|
|
|
|
|
|