diff options
| -rw-r--r-- | PICA_client.h | 10 | ||||
| -rw-r--r-- | PICA_node.c | 5 | ||||
| -rw-r--r-- | pica-client/sound.cpp | 2 |
3 files changed, 16 insertions, 1 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 diff --git a/PICA_node.c b/PICA_node.c index 2261e5b..7a62001 100644 --- a/PICA_node.c +++ b/PICA_node.c @@ -40,6 +40,11 @@ #endif #ifdef WIN32 + +#ifdef __MINGW32__ +#include <stdint.h> +#endif + typedef u_long in_addr_t; typedef u_short in_port_t; typedef u_short uint16_t; diff --git a/pica-client/sound.cpp b/pica-client/sound.cpp index 08294bc..1ef9be6 100644 --- a/pica-client/sound.cpp +++ b/pica-client/sound.cpp @@ -25,7 +25,7 @@ //link with winmm.lib #include <windows.h> -#include <Mmsystem.h> +#include <mmsystem.h> #endif |
