Small fixes for cross compilation.

svn path=/trunk/; revision=8038
This commit is contained in:
Art Yerkes 2004-02-05 16:26:39 +00:00
parent 5e2e1b620b
commit 2fa692ee50
3 changed files with 6 additions and 4 deletions

View file

@ -74,7 +74,7 @@ extern "C"
#include <stdlib.h>
#include <stdio.h>
#include <Winsock2.h>
#include <winsock2.h>
#include <windows.h>
#include <sys/types.h>
#include <time.h>

View file

@ -1,6 +1,7 @@
#ifndef TIMERCMP_H
#define TIMERCMP_H
#ifndef timercmp
/* Taken from sys/time.h on linux. */
# define timercmp(a, b, CMP) \
(((a)->tv_sec == (b)->tv_sec) ? \
@ -8,5 +9,6 @@
((a)->tv_sec CMP (b)->tv_sec))
# define timerclear(a) ((a)->tv_sec = (a)->tv_usec = 0)
#endif
#endif//TIMERCMP_H

View file

@ -50,7 +50,7 @@ static BOOL DnsIntContainsUnderscore( LPCWSTR Name ) {
* If the name contains a non-ascii character.
*/
DNS_STATUS DnsValidateName_W
DNS_STATUS WINAPI DnsValidateName_W
( LPCWSTR Name,
DNS_NAME_FORMAT Format ) {
BOOL AllowDot = FALSE;
@ -136,7 +136,7 @@ DNS_STATUS DnsValidateName_W
return ERROR_SUCCESS;
}
DNS_STATUS DnsValidateName_UTF8
DNS_STATUS WINAPI DnsValidateName_UTF8
( LPCSTR Name,
DNS_NAME_FORMAT Format ) {
PWCHAR Buffer;
@ -153,7 +153,7 @@ DNS_STATUS DnsValidateName_UTF8
return Status;
}
DNS_STATUS DnsValidateName_A
DNS_STATUS WINAPI DnsValidateName_A
( LPCSTR Name,
DNS_NAME_FORMAT Format ) {
return DnsValidateName_UTF8( Name, Format );