Skip to content
Snippets Groups Projects
Verified Commit 1fb3755a authored by Marco Simonelli's avatar Marco Simonelli Committed by Pier Angelo Vendrame
Browse files

Bug 41459: WebRTC fails to build under mingw (Part 3)

- fixes required to build third_party/sipcc
parent aca4ae38
No related branches found
No related tags found
No related merge requests found
...@@ -40,15 +40,22 @@ typedef uint8_t boolean; ...@@ -40,15 +40,22 @@ typedef uint8_t boolean;
* NOTE: size_t should already be declared by both the MinGW and Microsoft * NOTE: size_t should already be declared by both the MinGW and Microsoft
* SDKs. * SDKs.
*/ */
#ifndef _SSIZE_T_
#if defined(_MSC_VER) && !defined(_SSIZE_T_)
#define _SSIZE_T_ #define _SSIZE_T_
typedef int ssize_t; #if !defined(_WIN64)
typedef int32_t ssize_t;
#else
typedef int64_t ssize_t;
#endif
#endif #endif
/* /*
* Define pid_t. * Define pid_t for MSVC builds
*/ */
#if defined(_WIN32) && defined (_MSC_VER)
typedef int pid_t; typedef int pid_t;
#endif
/* /*
* Define min/max * Define min/max
......
...@@ -4,6 +4,10 @@ ...@@ -4,6 +4,10 @@
#include <errno.h> #include <errno.h>
#if defined(SIP_OS_WINDOWS) && !defined(_MSC_VER)
#include <minmax.h>
#endif
#include "sdp_os_defs.h" #include "sdp_os_defs.h"
#include "sipcc_sdp.h" #include "sipcc_sdp.h"
#include "sdp_private.h" #include "sdp_private.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment