mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
fix for windows mobile
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@718 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
1f23ceee1e
commit
ac42c95048
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue