mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 19:26:33 +00:00
Fix compiling rostests
svn path=/trunk/; revision=28096
This commit is contained in:
@@ -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>
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user