]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Check if stdint has been included before trying to declare int variants. Needed for...
authorPeter Olsson <peter@olssononline.se>
Tue, 14 Jan 2014 08:27:56 +0000 (09:27 +0100)
committerPeter Olsson <peter@olssononline.se>
Tue, 14 Jan 2014 08:27:56 +0000 (09:27 +0100)
libs/stfu/stfu.h

index e1a0d439a392d813e4c40472ff936370b62ac049..4bf4b5ed38e67583034d1fc615237baaa0181a46 100644 (file)
@@ -77,6 +77,7 @@ typedef unsigned long   in_addr_t;
 #include <winsock2.h>
 #include <windows.h>
 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