diff options
| author | Anton <anton@picapica> | 2019-03-08 20:02:47 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2019-03-08 20:02:47 +0400 |
| commit | d47f7d6c5c7769a7bc9716ec022dc6e9287d4ffc (patch) | |
| tree | e175ee8c3e7f1a7acff75d0305658c33a29cde39 /PICA_client.h | |
| parent | 49bfb33e31ac316e3e5ab5ee8809bab9101b5dc9 (diff) | |
| download | pica-pica-d47f7d6c5c7769a7bc9716ec022dc6e9287d4ffc.tar.gz pica-pica-d47f7d6c5c7769a7bc9716ec022dc6e9287d4ffc.zip | |
fix mingw-w64 cross-compile issues
Diffstat (limited to 'PICA_client.h')
| -rw-r--r-- | PICA_client.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/PICA_client.h b/PICA_client.h index ba575c3..ec013fa 100644 --- a/PICA_client.h +++ b/PICA_client.h @@ -24,12 +24,22 @@ #ifdef WIN32 +#define NOCRYPT #include <winsock2.h> #include <ws2tcpip.h> #include <windows.h> +#if defined(__MINGW32__) || defined(HAVE_STDINT_H) +#include <stdint.h> +#else +typedef unsigned __int8 uint8_t; +typedef unsigned __int32 uint32_t; typedef unsigned __int16 uint16_t; typedef unsigned __int64 uint64_t; +#endif + +typedef u_long in_addr_t; +typedef u_short in_port_t; #else |
