mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 22:31:38 +00:00
Fix compiling rostests
svn path=/trunk/; revision=28096
This commit is contained in:
parent
e83fc637ea
commit
4f2a8ebce4
5 changed files with 29 additions and 7 deletions
|
@ -1836,7 +1836,7 @@ static VOID Cleanup (int argc, const TCHAR *argv[])
|
|||
/*
|
||||
* main function
|
||||
*/
|
||||
int _tmain (int argc, const TCHAR *argv[])
|
||||
int cmd_main (int argc, const TCHAR *argv[])
|
||||
{
|
||||
TCHAR startPath[MAX_PATH];
|
||||
CONSOLE_SCREEN_BUFFER_INFO Info;
|
||||
|
|
|
@ -101,6 +101,7 @@ LPCTSTR GetEnvVarOrSpecial ( LPCTSTR varName );
|
|||
VOID AddBreakHandler (VOID);
|
||||
VOID RemoveBreakHandler (VOID);
|
||||
VOID DoCommand (LPTSTR line);
|
||||
int cmd_main (int argc, const TCHAR *argv[]);
|
||||
|
||||
extern HANDLE CMD_ModuleHandle;
|
||||
|
||||
|
|
|
@ -1,14 +1,12 @@
|
|||
<module name="cmd" type="win32cui" installbase="system32" installname="cmd.exe" unicode="yes">
|
||||
<module name="cmd_base" type="objectlibrary">
|
||||
<include base="ReactOS">include/reactos/wine</include>
|
||||
<include base="cmd">.</include>
|
||||
<include base="cmd_base">.</include>
|
||||
<define name="__USE_W32API" />
|
||||
<define name="ANONYMOUSUNIONS" />
|
||||
<define name="_WIN32_WINNT">0x0501</define>
|
||||
<define name="_DEBUG_MEM" />
|
||||
<library>kernel32</library>
|
||||
<library>advapi32</library>
|
||||
<library>shell32</library>
|
||||
<library>user32</library>
|
||||
<define name="UNICODE" />
|
||||
<define name="_UNICODE" />
|
||||
<pch>precomp.h</pch>
|
||||
<compilationunit name="unit.c">
|
||||
<file>alias.c</file>
|
||||
|
@ -66,5 +64,18 @@
|
|||
<file>where.c</file>
|
||||
<file>window.c</file>
|
||||
</compilationunit>
|
||||
</module>
|
||||
<module name="cmd" type="win32cui" installbase="system32" installname="cmd.exe" unicode="yes">
|
||||
<include base="ReactOS">include/reactos/wine</include>
|
||||
<include base="cmd">.</include>
|
||||
<define name="__USE_W32API" />
|
||||
<define name="ANONYMOUSUNIONS" />
|
||||
<define name="_WIN32_WINNT">0x0501</define>
|
||||
<library>cmd_base</library>
|
||||
<library>kernel32</library>
|
||||
<library>advapi32</library>
|
||||
<library>shell32</library>
|
||||
<library>user32</library>
|
||||
<file>cmd.rc</file>
|
||||
<file>main.c</file>
|
||||
</module>
|
6
reactos/base/shell/cmd/main.c
Normal file
6
reactos/base/shell/cmd/main.c
Normal file
|
@ -0,0 +1,6 @@
|
|||
#include <precomp.h>
|
||||
|
||||
int _tmain (int argc, const TCHAR *argv[])
|
||||
{
|
||||
return cmd_main(argc, argv);
|
||||
}
|
|
@ -1,3 +1,6 @@
|
|||
#ifndef __CMD_PRECOMP_H
|
||||
#define __CMD_PRECOMP_H
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning ( disable : 4103 ) /* use #pragma pack to change alignment */
|
||||
#undef _CRT_SECURE_NO_DEPRECATE
|
||||
|
@ -32,3 +35,4 @@
|
|||
|
||||
#include <reactos/resource.h>
|
||||
|
||||
#endif /* __CMD_PRECOMP_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue