From: Peter Olsson Date: Tue, 14 Jan 2014 08:27:56 +0000 (+0100) Subject: Check if stdint has been included before trying to declare int variants. Needed for... X-Git-Tag: v1.5.8~25^2~380 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f7b00fb6905855b1f23b8d31f06a2c348db4167;p=thirdparty%2Ffreeswitch.git Check if stdint has been included before trying to declare int variants. Needed for mod_v8 build in Windows --- diff --git a/libs/stfu/stfu.h b/libs/stfu/stfu.h index e1a0d439a3..4bf4b5ed38 100644 --- a/libs/stfu/stfu.h +++ b/libs/stfu/stfu.h @@ -77,6 +77,7 @@ typedef unsigned long in_addr_t; #include #include typedef SOCKET stfu_socket_t; +#ifndef _STDINT typedef unsigned __int64 uint64_t; typedef unsigned __int32 uint32_t; typedef unsigned __int16 uint16_t; @@ -85,6 +86,7 @@ typedef __int64 int64_t; typedef __int32 int32_t; typedef __int16 int16_t; typedef __int8 int8_t; +#endif typedef intptr_t stfu_ssize_t; typedef int stfu_filehandle_t; #define STFU_SOCK_INVALID INVALID_SOCKET