some minor modificationsto compile with Borland Builder

git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@39 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
Oxy 2006-07-04 18:10:02 +00:00
parent df3df9eaed
commit a155612cba
3 changed files with 11 additions and 18 deletions

View File

@ -51,7 +51,7 @@ extern const char * inet_ntop6(src, dst, size);
* author: * author:
* Paul Vixie, 1996. * Paul Vixie, 1996.
*/ */
extern int inet_pton4(src, dst); extern inet_pton4(const char *src,u_char *dst);
/* int /* int
* inet_pton6(src, dst) * inet_pton6(src, dst)
@ -83,7 +83,7 @@ extern int inet_pton6(src, dst);
* author: * author:
* Paul Vixie, 1996. * Paul Vixie, 1996.
*/ */
extern const char * inet_ntop(af, src, dst, size); extern const char *inet_ntop(int af,const void *src,char *dst,socklen_t size);
/* int /* int
@ -97,7 +97,7 @@ extern const char * inet_ntop(af, src, dst, size);
* author: * author:
* Paul Vixie, 1996. * Paul Vixie, 1996.
*/ */
extern int inet_pton(af, src, dst); extern int inet_pton(int af,const char *src,void *dst);
#endif #endif
#endif #endif

View File

@ -193,9 +193,7 @@ inet_ntop6(src, dst, size)
* Paul Vixie, 1996. * Paul Vixie, 1996.
*/ */
static int static int
inet_pton4(src, dst) inet_pton4(const char *src,u_char *dst)
const char *src;
u_char *dst;
{ {
int saw_digit, octets, ch; int saw_digit, octets, ch;
u_char tmp[4], *tp; u_char tmp[4], *tp;
@ -345,12 +343,7 @@ inet_pton6(src, dst)
* author: * author:
* Paul Vixie, 1996. * Paul Vixie, 1996.
*/ */
extern const char * extern const char *inet_ntop(int af,const void *src,char *dst,socklen_t size)
inet_ntop(af, src, dst, size)
int af;
const void *src;
char *dst;
socklen_t size;
{ {
switch (af) { switch (af) {
case AF_INET: case AF_INET:
@ -378,11 +371,7 @@ inet_ntop(af, src, dst, size)
* author: * author:
* Paul Vixie, 1996. * Paul Vixie, 1996.
*/ */
extern int int inet_pton(int af,const char *src,void *dst)
inet_pton(af, src, dst)
int af;
const char *src;
void *dst;
{ {
switch (af) { switch (af) {
case AF_INET: case AF_INET:

View File

@ -34,7 +34,11 @@
#if EXCLUDE_SOAP == 0 #if EXCLUDE_SOAP == 0
#define SOAP_BODY "Body" #define SOAP_BODY "Body"
#define SOAP_URN "http://schemas.xmlsoap.org/soap/envelope/" #ifdef WIN32 // escaping necessary for CBuilder
#define SOAP_URN "http:\/\/schemas.xmlsoap.org/soap/envelope/"
#else
#define SOAP_URN "http://schemas.xmlsoap.org/soap/envelope/"
#endif
#define QUERY_STATE_VAR_URN "urn:schemas-upnp-org:control-1-0" #define QUERY_STATE_VAR_URN "urn:schemas-upnp-org:control-1-0"