Author: akhaldi
Date: Mon Jan 13 12:41:18 2014
New Revision: 61598
URL:
http://svn.reactos.org/svn/reactos?rev=61598&view=rev
Log:
[SHUTDOWN]
* Remove one time inclusions from the main header and put them back where they belong.
CORE-7716
Modified:
trunk/reactos/base/applications/shutdown/misc.c
trunk/reactos/base/applications/shutdown/precomp.h
trunk/reactos/base/applications/shutdown/shutdown.c
Modified: trunk/reactos/base/applications/shutdown/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
==============================================================================
--- trunk/reactos/base/applications/shutdown/misc.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/shutdown/misc.c [iso-8859-1] Mon Jan 13 12:41:18 2014
@@ -7,6 +7,8 @@
*/
#include "precomp.h"
+
+#include <stdio.h>
const DWORD defaultReason = SHTDN_REASON_MAJOR_OTHER | SHTDN_REASON_MINOR_OTHER;
Modified: trunk/reactos/base/applications/shutdown/precomp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
==============================================================================
--- trunk/reactos/base/applications/shutdown/precomp.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/shutdown/precomp.h [iso-8859-1] Mon Jan 13 12:41:18
2014
@@ -2,16 +2,13 @@
#define __SHUTDOWN_PRECOMP_H
/* INCLUDES ******************************************************************/
+
#include <stdarg.h>
+
#include <windef.h>
#include <winbase.h>
#include <winreg.h>
#include <winuser.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <tchar.h>
-#include <powrprof.h>
-// #include <reason.h> // Shutdown codes
#include "resource.h"
@@ -60,4 +57,4 @@
/* gui.c */
BOOL ShutdownGuiMain(struct CommandLineOptions opts);
-#endif
+#endif /* __SHUTDOWN_PRECOMP_H */
Modified: trunk/reactos/base/applications/shutdown/shutdown.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
==============================================================================
--- trunk/reactos/base/applications/shutdown/shutdown.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/shutdown/shutdown.c [iso-8859-1] Mon Jan 13 12:41:18
2014
@@ -6,6 +6,10 @@
*/
#include "precomp.h"
+
+#include <stdlib.h>
+#include <tchar.h>
+#include <powrprof.h>
/*
* This takes strings from a resource stringtable