From ac42c95048c05fe9d176b610f98f0c1648884724 Mon Sep 17 00:00:00 2001 From: aymeric Date: Wed, 14 Oct 2009 12:45:13 +0000 Subject: [PATCH] fix for windows mobile git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@718 3f6dc0c8-ddfe-455d-9043-3cd528dc4637 --- linphone/oRTP/include/ortp/port.h | 3 ++- linphone/oRTP/src/port.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/linphone/oRTP/include/ortp/port.h b/linphone/oRTP/include/ortp/port.h index 294993122..395523486 100644 --- a/linphone/oRTP/include/ortp/port.h +++ b/linphone/oRTP/include/ortp/port.h @@ -231,6 +231,7 @@ char *ortp_strdup_printf(const char *fmt,...); char *ortp_strdup_vprintf(const char *fmt, va_list ap); /* portable named pipes */ +#if !defined(_WIN32_WCE) #ifdef WIN32 typedef HANDLE ortp_pipe_t; #define ORTP_PIPE_INVALID INVALID_HANDLE_VALUE @@ -254,7 +255,7 @@ int ortp_client_pipe_close(ortp_pipe_t sock); int ortp_pipe_read(ortp_pipe_t p, uint8_t *buf, int len); int ortp_pipe_write(ortp_pipe_t p, const uint8_t *buf, int len); - +#endif #ifdef __cplusplus } diff --git a/linphone/oRTP/src/port.c b/linphone/oRTP/src/port.c index 4171aed03..88ef75b21 100644 --- a/linphone/oRTP/src/port.c +++ b/linphone/oRTP/src/port.c @@ -405,7 +405,7 @@ int ortp_client_pipe_close(ortp_socket_t sock){ return close(sock); } -#else +#elif defined(WIN32) && !defined(_WIN32_WCE) static char *make_pipe_name(const char *name){ return ortp_strdup_printf("\\\\.\\pipe\\%s",name);