… | |
… | |
26 | */ |
26 | */ |
27 | #ifdef __cplusplus |
27 | #ifdef __cplusplus |
28 | extern "C" { |
28 | extern "C" { |
29 | #endif |
29 | #endif |
30 | |
30 | |
31 | #include <sys/types.h> |
|
|
32 | #include <sys/time.h> |
|
|
33 | #include <stdint.h> |
|
|
34 | #include <stdarg.h> |
|
|
35 | |
|
|
36 | #ifdef WIN32 |
31 | #ifdef _WIN32 |
37 | #define WIN32_LEAN_AND_MEAN |
32 | # define WIN32_LEAN_AND_MEAN |
38 | #include <windows.h> |
33 | # include <windows.h> |
39 | #undef WIN32_LEAN_AND_MEAN |
34 | # undef WIN32_LEAN_AND_MEAN |
40 | typedef unsigned char u_char; |
35 | typedef unsigned char u_char; |
41 | typedef unsigned short u_short; |
36 | typedef unsigned short u_short; |
|
|
37 | #else |
|
|
38 | # include <sys/types.h> |
|
|
39 | # include <sys/time.h> |
|
|
40 | # include <inttypes.h> |
42 | #endif |
41 | #endif |
|
|
42 | |
|
|
43 | #include <stdarg.h> |
43 | |
44 | |
44 | /* Fix so that ppl dont have to run with <sys/queue.h> */ |
45 | /* Fix so that ppl dont have to run with <sys/queue.h> */ |
45 | #ifndef TAILQ_ENTRY |
46 | #ifndef TAILQ_ENTRY |
46 | #define _EVENT_DEFINED_TQENTRY |
47 | #define _EVENT_DEFINED_TQENTRY |
47 | #define TAILQ_ENTRY(type) \ |
48 | #define TAILQ_ENTRY(type) \ |