From f8324d41e3b044e7de289a4730da7ec55f4101cc Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Mon, 8 Dec 2008 16:09:21 +0000 Subject: ares_writev() shall not be exported when using Watt-32 (has writev). Added _USE_32BIT_TIME_T to avoid runtime warning. Applies to VC-2008+ only. --- Makefile.vc6 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile.vc6') diff --git a/Makefile.vc6 b/Makefile.vc6 index 7b8af31..191142e 100644 --- a/Makefile.vc6 +++ b/Makefile.vc6 @@ -26,7 +26,7 @@ OBJ_DIR = VC6_obj DEF_FILE = cares.def !if "$(USE_WATT32)" == "1" -CFLAGS = $(CFLAGS) -UWIN32 -DWATT32 -I$(WATT_ROOT)\inc +CFLAGS = $(CFLAGS) -UWIN32 -DWATT32 -D_USE_32BIT_TIME_T -I$(WATT_ROOT)\inc EX_LIBS = $(WATT_ROOT)\lib\wattcpvc_imp.lib !else @@ -124,9 +124,11 @@ $(DEF_FILE): $(OBJECTS) Makefile.VC6 @echo ares_inet_net_pton >> $@ @echo ares_inet_ntop >> $@ @echo ares_inet_pton >> $@ - @echo ares_writev >> $@ @echo ares_getnameinfo >> $@ @echo ares_parse_aaaa_reply >> $@ +!if "$(USE_WATT32)" == "0" + @echo ares_writev >> $@ +!endif ahost.exe: $(OBJ_DIR) $(OBJ_DIR)\ahost.obj $(OBJ_DIR)\ares_getopt.obj cares_imp.lib link $(LDFLAGS) -out:$@ $(OBJ_DIR)\ahost.obj $(OBJ_DIR)\ares_getopt.obj cares_imp.lib $(EX_LIBS) -- cgit v1.2.3