mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:56:26 +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_NAME = arp
|
||||||
|
|
||||||
|
TARGET_CFLAGS = -D__USE_W32API
|
||||||
|
|
||||||
TARGET_SDKLIBS = user32.a snmpapi.a
|
TARGET_SDKLIBS = user32.a snmpapi.a
|
||||||
|
|
||||||
TARGET_OBJECTS = $(TARGET_NAME).o
|
TARGET_OBJECTS = $(TARGET_NAME).o
|
||||||
|
|
|
@ -7,6 +7,8 @@ TARGET_APPTYPE = console
|
||||||
|
|
||||||
TARGET_NAME = ipconfig
|
TARGET_NAME = ipconfig
|
||||||
|
|
||||||
|
TARGET_CFLAGS = -D__USE_W32API
|
||||||
|
|
||||||
TARGET_SDKLIBS = user32.a iphlpapi.a
|
TARGET_SDKLIBS = user32.a iphlpapi.a
|
||||||
|
|
||||||
TARGET_OBJECTS = $(TARGET_NAME).o
|
TARGET_OBJECTS = $(TARGET_NAME).o
|
||||||
|
|
|
@ -12,7 +12,7 @@ TARGET_NAME = ncftp
|
||||||
|
|
||||||
TARGET_SDKLIBS = kernel32.a ws2_32.a
|
TARGET_SDKLIBS = kernel32.a ws2_32.a
|
||||||
|
|
||||||
TARGET_CFLAGS = -Dncftp
|
TARGET_CFLAGS = -Dncftp -D__USE_W32API
|
||||||
|
|
||||||
TARGET_CLEAN = \
|
TARGET_CLEAN = \
|
||||||
sio/*.o Strn/*.o libncftp/*.o ncftp/*.o
|
sio/*.o Strn/*.o libncftp/*.o ncftp/*.o
|
||||||
|
|
|
@ -7,6 +7,11 @@ TARGET_APPTYPE = console
|
||||||
|
|
||||||
TARGET_NAME = netstat
|
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_SDKLIBS = user32.a snmpapi.a iphlpapi.a ws2_32.a
|
||||||
|
|
||||||
TARGET_OBJECTS = $(TARGET_NAME).o
|
TARGET_OBJECTS = $(TARGET_NAME).o
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
// Copyright (C) 1998-2002 Mark Russinovich
|
// Copyright (C) 1998-2002 Mark Russinovich
|
||||||
// www.sysinternals.com
|
// www.sysinternals.com
|
||||||
|
|
||||||
|
#define ANY_SIZE 1
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <winsock.h>
|
#include <winsock.h>
|
||||||
|
@ -28,14 +29,6 @@
|
||||||
#include <iphlpapi.h>
|
#include <iphlpapi.h>
|
||||||
#include <snmp.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 "trace.h"
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
|
|
||||||
|
|
|
@ -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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS packet driver interface list utility
|
* PROJECT: ReactOS packet driver interface list utility
|
||||||
|
@ -18,8 +18,6 @@
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "trace.h"
|
|
||||||
|
|
||||||
|
|
||||||
#define MAX_ADAPTERS 10
|
#define MAX_ADAPTERS 10
|
||||||
#define NIC_BUFFER_SIZE 2048
|
#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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS ping utility
|
* PROJECT: ReactOS ping utility
|
||||||
|
@ -210,11 +210,11 @@ BOOL ParseCmdline(int argc, char* argv[])
|
||||||
INT i;
|
INT i;
|
||||||
BOOL ShowUsage;
|
BOOL ShowUsage;
|
||||||
BOOL FoundTarget;
|
BOOL FoundTarget;
|
||||||
#if 1
|
//#if 1
|
||||||
lstrcpy(TargetName, "127.0.0.1");
|
// lstrcpy(TargetName, "127.0.0.1");
|
||||||
PingCount = 1;
|
// PingCount = 1;
|
||||||
return TRUE;
|
// return TRUE;
|
||||||
#endif
|
//#endif
|
||||||
if (argc < 2) {
|
if (argc < 2) {
|
||||||
ShowUsage = TRUE;
|
ShowUsage = TRUE;
|
||||||
} else {
|
} 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
|
PATH_TO_TOP=../../../reactos
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ TARGET_NAME = telnet
|
||||||
|
|
||||||
TARGET_SDKLIBS = ws2_32.a
|
TARGET_SDKLIBS = ws2_32.a
|
||||||
|
|
||||||
TARGET_CPPFLAGS = -D__REACTOS__
|
TARGET_CPPFLAGS = -D__REACTOS__ -D__USE_W32API
|
||||||
|
|
||||||
TARGET_GCCLIBS = stdc++
|
TARGET_GCCLIBS = stdc++
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <reactos/resource.h>
|
#include <reactos/resource.h>
|
||||||
|
#include "resource/tnmsg.rc"
|
||||||
|
|
||||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue