[FONTVIEW]
authorAmine Khaldi <amine.khaldi@reactos.org>
Mon, 6 Jan 2014 20:48:44 +0000 (20:48 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Mon, 6 Jan 2014 20:48:44 +0000 (20:48 +0000)
* Create a main header and move some inclusions to it.
CORE-7716

svn path=/trunk/; revision=61547

reactos/base/applications/fontview/display.c
reactos/base/applications/fontview/display.h
reactos/base/applications/fontview/fontview.c
reactos/base/applications/fontview/fontview.h
reactos/base/applications/fontview/precomp.h [new file with mode: 0644]

index 787a083..f00992c 100644 (file)
  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#include "display.h"
+#include "precomp.h"
+
+#include <stdio.h>
+#include <malloc.h>
 
 #define SPACING1 8
 #define SPACING2 5
index 4a13f81..37b0fc0 100644 (file)
@@ -1,13 +1,5 @@
 #pragma once
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <windef.h>
-#include <winbase.h>
-#include <winuser.h>
-#include <wingdi.h>
-#include <commdlg.h>
-
 /* Messages for the display class */
 #define FVM_SETTYPEFACE WM_USER
 #define FVM_SETSTRING (WM_USER + 1)
index 8ecf477..16adf37 100644 (file)
  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#include "precomp.h"
+
+#include <winnls.h>
+#include <shellapi.h>
+
 #include "fontview.h"
+#include "resource.h"
 
 HINSTANCE g_hInstance;
 EXTLOGFONTW g_ExtLogFontW;
index 578c1c4..31572ff 100644 (file)
@@ -1,11 +1,4 @@
-#include <stdarg.h>
-#include <windef.h>
-#include <winbase.h>
-#include <winnls.h>
-#include <shellapi.h>
-
-#include "resource.h"
-#include "display.h"
+#pragma once
 
 #define MAX_LOADSTRING 50
 #define MAX_BUTTONNAME 30
diff --git a/reactos/base/applications/fontview/precomp.h b/reactos/base/applications/fontview/precomp.h
new file mode 100644 (file)
index 0000000..84cdc25
--- /dev/null
@@ -0,0 +1,14 @@
+#ifndef _FONTVIEW_PCH_
+#define _FONTVIEW_PCH_
+
+#include <stdarg.h>
+
+#include <windef.h>
+#include <winbase.h>
+#include <wingdi.h>
+#include <winuser.h>
+#include <commdlg.h>
+
+#include "display.h"
+
+#endif /* _FONTVIEW_PCH_ */