misc.h
| 1 | #ifndef MISC_H |
| 2 | #define MISC_H |
| 3 | |
| 4 | #ifdef __unix__ |
| 5 | #define _BSD_SOURCE |
| 6 | #define _DEFAULT_SOURCE |
| 7 | #include <unistd.h> |
| 8 | #endif |
| 9 | #ifdef _WIN32 |
| 10 | #include <windows.h> |
| 11 | #endif |
| 12 | |
| 13 | #include <stdint.h> |
| 14 | #include <string.h> |
| 15 | |
| 16 | void sleep_ms(unsigned int milliseconds); |
| 17 | uint32_t ntoh32(uint32_t const net); |
| 18 | |
| 19 | #endif /* MISC_H */ |
| 20 |