mirror of
https://github.com/reactos/reactos.git
synced 2025-05-02 12:15:23 +00:00
Build fixes for w32api.
svn path=/trunk/; revision=7590
This commit is contained in:
parent
08277c1b6a
commit
f4ee51ec85
11 changed files with 24 additions and 23 deletions
|
@ -7,6 +7,8 @@ TARGET_APPTYPE = console
|
|||
|
||||
TARGET_NAME = arp
|
||||
|
||||
TARGET_CFLAGS = -D__USE_W32API
|
||||
|
||||
TARGET_SDKLIBS = user32.a snmpapi.a
|
||||
|
||||
TARGET_OBJECTS = $(TARGET_NAME).o
|
||||
|
|
|
@ -7,6 +7,8 @@ TARGET_APPTYPE = console
|
|||
|
||||
TARGET_NAME = ipconfig
|
||||
|
||||
TARGET_CFLAGS = -D__USE_W32API
|
||||
|
||||
TARGET_SDKLIBS = user32.a iphlpapi.a
|
||||
|
||||
TARGET_OBJECTS = $(TARGET_NAME).o
|
||||
|
|
|
@ -12,7 +12,7 @@ TARGET_NAME = ncftp
|
|||
|
||||
TARGET_SDKLIBS = kernel32.a ws2_32.a
|
||||
|
||||
TARGET_CFLAGS = -Dncftp
|
||||
TARGET_CFLAGS = -Dncftp -D__USE_W32API
|
||||
|
||||
TARGET_CLEAN = \
|
||||
sio/*.o Strn/*.o libncftp/*.o ncftp/*.o
|
||||
|
|
|
@ -7,6 +7,11 @@ TARGET_APPTYPE = console
|
|||
|
||||
TARGET_NAME = netstat
|
||||
|
||||
TARGET_CFLAGS = \
|
||||
-D__USE_W32API \
|
||||
-D_WIN32_IE=0x600 \
|
||||
-D_WIN32_WINNT=0x501
|
||||
|
||||
TARGET_SDKLIBS = user32.a snmpapi.a iphlpapi.a ws2_32.a
|
||||
|
||||
TARGET_OBJECTS = $(TARGET_NAME).o
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
// Copyright (C) 1998-2002 Mark Russinovich
|
||||
// www.sysinternals.com
|
||||
|
||||
#define ANY_SIZE 1
|
||||
|
||||
#include <windows.h>
|
||||
#include <winsock.h>
|
||||
|
@ -28,14 +29,6 @@
|
|||
#include <iphlpapi.h>
|
||||
#include <snmp.h>
|
||||
|
||||
//#include "windows.h"
|
||||
//#include "stdio.h"
|
||||
//#include "winsock.h"
|
||||
//#include "iprtrmib.h"
|
||||
//#include "tlhelp32.h"
|
||||
//#include "iphlpapi.h"
|
||||
//#include "netstatp.h"
|
||||
|
||||
#include "trace.h"
|
||||
#include "resource.h"
|
||||
|
||||
|
@ -527,4 +520,4 @@ int main(int argc, char *argv[])
|
|||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: niclist.c,v 1.2 2002/09/24 14:26:47 robd Exp $
|
||||
/* $Id: niclist.c,v 1.3 2004/01/12 22:45:53 sedwards Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS packet driver interface list utility
|
||||
|
@ -18,8 +18,6 @@
|
|||
#include <windows.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "trace.h"
|
||||
|
||||
|
||||
#define MAX_ADAPTERS 10
|
||||
#define NIC_BUFFER_SIZE 2048
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: ping.c,v 1.1 2001/12/30 04:09:38 sedwards Exp $
|
||||
/* $Id: ping.c,v 1.2 2004/01/12 22:45:53 sedwards Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS ping utility
|
||||
|
@ -210,11 +210,11 @@ BOOL ParseCmdline(int argc, char* argv[])
|
|||
INT i;
|
||||
BOOL ShowUsage;
|
||||
BOOL FoundTarget;
|
||||
#if 1
|
||||
lstrcpy(TargetName, "127.0.0.1");
|
||||
PingCount = 1;
|
||||
return TRUE;
|
||||
#endif
|
||||
//#if 1
|
||||
// lstrcpy(TargetName, "127.0.0.1");
|
||||
// PingCount = 1;
|
||||
// return TRUE;
|
||||
//#endif
|
||||
if (argc < 2) {
|
||||
ShowUsage = TRUE;
|
||||
} else {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $Id: Makefile,v 1.3 2003/06/22 19:43:53 guido Exp $
|
||||
# $Id: Makefile,v 1.4 2004/01/12 22:45:53 sedwards Exp $
|
||||
|
||||
PATH_TO_TOP=../../../reactos
|
||||
|
||||
|
@ -10,7 +10,7 @@ TARGET_NAME = telnet
|
|||
|
||||
TARGET_SDKLIBS = ws2_32.a
|
||||
|
||||
TARGET_CPPFLAGS = -D__REACTOS__
|
||||
TARGET_CPPFLAGS = -D__REACTOS__ -D__USE_W32API
|
||||
|
||||
TARGET_GCCLIBS = stdc++
|
||||
|
||||
|
|
|
@ -104,4 +104,4 @@ END
|
|||
TelnetIcon ICON "telnet.ico"
|
||||
#else
|
||||
TelnetIcon ICON "../telnet.ico"
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -31,4 +31,4 @@ BOOL WINAPI ControlEventHandler(DWORD);
|
|||
// Bryan Montgomery 10/14/98
|
||||
void setTNetwork(TNetwork);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#include <windows.h>
|
||||
#include <reactos/resource.h>
|
||||
#include "resource/tnmsg.rc"
|
||||
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
|
||||
|
|
Loading…
Reference in a new issue