[POWERCFG]
authorAmine Khaldi <amine.khaldi@reactos.org>
Thu, 28 Jul 2011 15:00:43 +0000 (15:00 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Thu, 28 Jul 2011 15:00:43 +0000 (15:00 +0000)
* Use powercfg.h as a PCH.

svn path=/trunk/; revision=52959

reactos/dll/cpl/powercfg/CMakeLists.txt
reactos/dll/cpl/powercfg/advanced.c
reactos/dll/cpl/powercfg/alarms.c
reactos/dll/cpl/powercfg/hibernate.c
reactos/dll/cpl/powercfg/powercfg.c
reactos/dll/cpl/powercfg/powercfg.h
reactos/dll/cpl/powercfg/powercfg.rbuild
reactos/dll/cpl/powercfg/powershemes.c

index c0beaa6..f449a94 100644 (file)
@@ -25,4 +25,5 @@ add_importlibs(powercfg
     kernel32
     ntdll)
 
+add_pch(powercfg powercfg.h)
 add_cd_file(TARGET powercfg DESTINATION reactos/system32 FOR all)
index 20c4b85..15313f2 100644 (file)
 //typedef long NTSTATUS;
 //#endif
 
-#include "ntstatus.h"
-#define WIN32_NO_STATUS
-#include <windows.h>
-#include <commctrl.h>
-#include <cpl.h>
-#include "resource.h"
 #include "powercfg.h"
 
 HWND hAdv = 0;
index 464723b..df44386 100644 (file)
  *                  Dmitry Chapyshev (lentind@yandex.ru)
  */
 
-
-#include <windows.h>
-#include <commctrl.h>
-#include <cpl.h>
-#include <stdio.h>
-#include <tchar.h>
-
-#include "resource.h"
 #include "powercfg.h"
 
 static BOOLEAN
index 77cc51d..1b69cc8 100644 (file)
 //typedef long NTSTATUS;
 //#endif
 
-#include "ntstatus.h"
-#define WIN32_NO_STATUS
-#include <windows.h>
-#include <commctrl.h>
-#include <cpl.h>
-#include <stdio.h>
-#include <tchar.h>
-
-#include "resource.h"
 #include "powercfg.h"
 
-
 BOOLEAN Pos_InitData();
 void Adv_InitDialog();
 
index af764b2..28c7b84 100644 (file)
  *                  Dmitry Chapyshev (lentind@yandex.ru)
  */
 
-#include <windows.h>
-#include <commctrl.h>
-#include <shlobj.h>
-#include <regstr.h>
-#include <cpl.h>
-
-#include "resource.h"
 #include "powercfg.h"
 
 #define NUM_APPLETS    (1)
index 27b54e5..c599788 100644 (file)
@@ -1,6 +1,16 @@
-#pragma once
+#include "ntstatus.h"
+#define WIN32_NO_STATUS
+#include <windows.h>
+
+#include <commctrl.h>
+#include <cpl.h>
+#include <stdio.h>
+#include <tchar.h>
+#include <shlobj.h>
+#include <regstr.h>
 
 #include "powrprof.h"
+#include "resource.h"
 
 typedef struct
 {
index 9e53839..14f44a1 100644 (file)
@@ -15,4 +15,5 @@
        <file>advanced.c</file>
        <file>hibernate.c</file>
        <file>powercfg.rc</file>
+       <pch>powercfg.h</pch>
 </module>
index cf8ced7..05037de 100644 (file)
  *                  Dmitry Chapyshev (lentind@yandex.ru)
  */
 
-#include <windows.h>
-#include <commctrl.h>
-#include <cpl.h>
-#include <tchar.h>
-#include "resource.h"
 #include "powercfg.h"
-#include "stdio.h"
 
 UINT Sec[]=
 {