Windows portability fixes

This commit is contained in:
Evan Miller
2020-08-05 00:20:59 -04:00
parent bcc6defe94
commit 6771014c49
2 changed files with 16 additions and 3 deletions

View File

@@ -5,6 +5,13 @@
#include <locale.h>
#include <inttypes.h>
// for ntohl
#ifdef _WIN32
#include <winsock.h>
#else
#include <arpa/inet.h>
#endif
typedef uint16_t guint16;
typedef uint32_t guint32;
typedef uint64_t guint64;