Author: akhaldi
Date: Thu Jul 28 14:55:20 2011
New Revision: 52957
URL:
http://svn.reactos.org/svn/reactos?rev=52957&view=rev
Log:
[MAIN]
* Use main.h as a PCH.
Modified:
trunk/reactos/dll/cpl/main/CMakeLists.txt
trunk/reactos/dll/cpl/main/keyboard.c
trunk/reactos/dll/cpl/main/main.c
trunk/reactos/dll/cpl/main/main.h
trunk/reactos/dll/cpl/main/main.rbuild
trunk/reactos/dll/cpl/main/mouse.c
Modified: trunk/reactos/dll/cpl/main/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/CMakeLists.tx…
==============================================================================
--- trunk/reactos/dll/cpl/main/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/main/CMakeLists.txt [iso-8859-1] Thu Jul 28 14:55:20 2011
@@ -24,4 +24,5 @@
gdi32
kernel32)
+add_pch(main main.h)
add_cd_file(TARGET main DESTINATION reactos/system32 FOR all)
Modified: trunk/reactos/dll/cpl/main/keyboard.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/keyboard.c?re…
==============================================================================
--- trunk/reactos/dll/cpl/main/keyboard.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/main/keyboard.c [iso-8859-1] Thu Jul 28 14:55:20 2011
@@ -24,16 +24,7 @@
* PROGRAMMER: Eric Kohl
*/
-#include <windows.h>
-#include <devguid.h>
-#include <commctrl.h>
-#include <prsht.h>
-#include <shlobj.h>
-#include <cpl.h>
-#include <regstr.h>
-
#include "main.h"
-#include "resource.h"
#define ID_BLINK_TIMER 345
Modified: trunk/reactos/dll/cpl/main/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/main.c?rev=52…
==============================================================================
--- trunk/reactos/dll/cpl/main/main.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/main/main.c [iso-8859-1] Thu Jul 28 14:55:20 2011
@@ -25,16 +25,8 @@
* UPDATE HISTORY:
* 05-01-2004 Created
*/
-#include <windows.h>
-#include <initguid.h>
-#include <devguid.h>
-#include <commctrl.h>
-#include <cpl.h>
-#include <cplext.h>
#include "main.h"
-#include "resource.h"
-
#define NUM_APPLETS (2)
Modified: trunk/reactos/dll/cpl/main/main.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/main.h?rev=52…
==============================================================================
--- trunk/reactos/dll/cpl/main/main.h [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/main/main.h [iso-8859-1] Thu Jul 28 14:55:20 2011
@@ -1,4 +1,19 @@
-#pragma once
+#include <windows.h>
+#include <initguid.h>
+#include <cplext.h>
+#include <winuser.h>
+#include <tchar.h>
+#include <math.h>
+#include <limits.h>
+#include <stdio.h>
+#include <devguid.h>
+#include <commctrl.h>
+#include <prsht.h>
+#include <shlobj.h>
+#include <cpl.h>
+#include <regstr.h>
+
+#include "resource.h"
typedef enum
{
Modified: trunk/reactos/dll/cpl/main/main.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/main.rbuild?r…
==============================================================================
--- trunk/reactos/dll/cpl/main/main.rbuild [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/main/main.rbuild [iso-8859-1] Thu Jul 28 14:55:20 2011
@@ -14,4 +14,5 @@
<file>main.c</file>
<file>mouse.c</file>
<file>main.rc</file>
+ <pch>main.h</pch>
</module>
Modified: trunk/reactos/dll/cpl/main/mouse.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/mouse.c?rev=5…
==============================================================================
--- trunk/reactos/dll/cpl/main/mouse.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/main/mouse.c [iso-8859-1] Thu Jul 28 14:55:20 2011
@@ -28,22 +28,7 @@
//TODO:
// add missing icons
-#include <windows.h>
-#include <winuser.h>
-#include <devguid.h>
-#include <commctrl.h>
-#include <cpl.h>
-#include <tchar.h>
-#include <math.h>
-#include <limits.h>
-#include <shlobj.h>
-#include <cplext.h>
-#include <regstr.h>
-
-#include <stdio.h>
-
#include "main.h"
-#include "resource.h"
#define DEFAULT_DOUBLE_CLICK_SPEED 500
#define DEFAULT_CLICK_LOCK_TIME 2200