- Use PCH everywhere to increase compile speed
authorAlex Ionescu <aionescu@gmail.com>
Wed, 27 Jul 2005 16:18:06 +0000 (16:18 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Wed, 27 Jul 2005 16:18:06 +0000 (16:18 +0000)
- Some PSDK compatibility.

svn path=/trunk/; revision=16802

28 files changed:
reactos/lib/ntdll/inc/ntdll.h
reactos/lib/ntdll/ldr/utils.c
reactos/lib/ntdll/rtl/path.c
reactos/lib/ntdll/stdlib/abs.c
reactos/lib/ntdll/stdlib/atoi.c
reactos/lib/ntdll/stdlib/atoi64.c
reactos/lib/ntdll/stdlib/atol.c
reactos/lib/ntdll/stdlib/bsearch.c
reactos/lib/ntdll/stdlib/itoa.c
reactos/lib/ntdll/stdlib/itow.c
reactos/lib/ntdll/stdlib/labs.c
reactos/lib/ntdll/stdlib/lfind.c
reactos/lib/ntdll/stdlib/splitp.c
reactos/lib/ntdll/stdlib/strtol.c
reactos/lib/ntdll/stdlib/strtoul.c
reactos/lib/ntdll/stdlib/wcstol.c
reactos/lib/ntdll/stdlib/wcstoul.c
reactos/lib/ntdll/stdlib/wtoi.c
reactos/lib/ntdll/stdlib/wtoi64.c
reactos/lib/ntdll/stdlib/wtol.c
reactos/lib/ntdll/string/ctype.c
reactos/lib/ntdll/string/memicmp.c
reactos/lib/ntdll/string/stricmp.c
reactos/lib/ntdll/string/strlwr.c
reactos/lib/ntdll/string/strnicmp.c
reactos/lib/ntdll/string/strstr.c
reactos/lib/ntdll/string/strupr.c
reactos/lib/ntdll/string/wstring.c

index 2ce97e4..7ce2a0f 100644 (file)
@@ -9,6 +9,9 @@
 /* INCLUDES ******************************************************************/
 
 /* C Headers */
+#define _CTYPE_DISABLE_MACROS
+#define _INC_SWPRINTF_INL_
+#include <limits.h>
 #include <stdio.h>
 #include <ctype.h>
 
index 54cf36c..aae4079 100644 (file)
@@ -96,7 +96,7 @@ LdrMappedAsDataFile(PVOID *BaseAddress)
    return FALSE;
 }
 
-static inline LONG LdrpDecrementLoadCount(PLDR_DATA_TABLE_ENTRY Module, BOOLEAN Locked)
+static __inline LONG LdrpDecrementLoadCount(PLDR_DATA_TABLE_ENTRY Module, BOOLEAN Locked)
 {
    LONG LoadCount;
    if (!Locked)
@@ -115,7 +115,7 @@ static inline LONG LdrpDecrementLoadCount(PLDR_DATA_TABLE_ENTRY Module, BOOLEAN
    return LoadCount;
 }
 
-static inline LONG LdrpIncrementLoadCount(PLDR_DATA_TABLE_ENTRY Module, BOOLEAN Locked)
+static __inline LONG LdrpIncrementLoadCount(PLDR_DATA_TABLE_ENTRY Module, BOOLEAN Locked)
 {
    LONG LoadCount;
    if (!Locked)
@@ -134,7 +134,7 @@ static inline LONG LdrpIncrementLoadCount(PLDR_DATA_TABLE_ENTRY Module, BOOLEAN
    return LoadCount;
 }
 
-static inline VOID LdrpAcquireTlsSlot(PLDR_DATA_TABLE_ENTRY Module, ULONG Size, BOOLEAN Locked)
+static __inline VOID LdrpAcquireTlsSlot(PLDR_DATA_TABLE_ENTRY Module, ULONG Size, BOOLEAN Locked)
 {
    if (!Locked)
      {
@@ -149,7 +149,7 @@ static inline VOID LdrpAcquireTlsSlot(PLDR_DATA_TABLE_ENTRY Module, ULONG Size,
      }
 }
 
-static inline VOID LdrpTlsCallback(PLDR_DATA_TABLE_ENTRY Module, ULONG dwReason)
+static __inline VOID LdrpTlsCallback(PLDR_DATA_TABLE_ENTRY Module, ULONG dwReason)
 {
    PIMAGE_TLS_CALLBACK TlsCallback;
    if (Module->TlsIndex != 0xFFFF && Module->LoadCount == 0xFFFF)
index 0f1f119..f62a2ee 100644 (file)
@@ -406,7 +406,7 @@ RtlSetCurrentDirectory_U(PUNICODE_STRING dir)
  * 2) Get rid of duplicate backslashes
  * 3) Get rid of . and .. components in the path.
  */
-static inline void collapse_path( WCHAR *path, UINT mark )
+static __inline void collapse_path( WCHAR *path, UINT mark )
 {
     WCHAR *p, *next;
 
index 24f6351..98953c4 100644 (file)
@@ -1,5 +1,5 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
-#include <stdlib.h>
+#include <ntdll.h>
 
 /*
  * @implemented
index 094f96f..3e2331b 100644 (file)
@@ -1,5 +1,5 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
-#include <stdlib.h>
+#include <ntdll.h>
 
 /*
  * @implemented
index 3daa5f5..cd9cba7 100644 (file)
@@ -6,9 +6,7 @@
  * PURPOSE:         converts an ascii string to 64 bit integer
  */
 
-#include <stdlib.h>
-#define __NO_CTYPE_INLINES
-#include <ctype.h>
+#include <ntdll.h>
 
 /*
  * @implemented
index 60e27e3..fca9a31 100644 (file)
@@ -1,5 +1,5 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
-#include <stdlib.h>
+#include <ntdll.h>
 
 /*
  * @implemented
index e1e4f11..08f7d94 100644 (file)
@@ -1,5 +1,5 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
-#include <stdlib.h>
+#include <ntdll.h>
 
 /*
  * @implemented
index 4bc7999..0643b3d 100644 (file)
@@ -15,8 +15,7 @@
  * Copyright 2003 Thomas Mertes
  */
 
-#include <stdlib.h>
-#include <string.h>
+#include <ntdll.h>
 
 /*
  * @implemented
index de1e614..eb7aa61 100644 (file)
@@ -9,7 +9,7 @@
  *              1998: Added ltoa Boudewijn Dekker
  */
 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
-#include <stdlib.h>
+#include <ntdll.h>
 
 /*
  * @implemented
index 50ad63d..52ef247 100644 (file)
@@ -1,5 +1,5 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
-#include <stdlib.h>
+#include <ntdll.h>
 
 /*
  * @implemented
index 3afdc05..93b454a 100644 (file)
@@ -1,5 +1,4 @@
-#include <search.h>
-#include <stdlib.h>
+#include <ntdll.h>
 
 
 /*
index 6314129..be123f3 100644 (file)
@@ -1,5 +1,4 @@
-#include <stdlib.h>
-#include <string.h>
+#include <ntdll.h>
 
 /*
  * @implemented
index bf11453..b6d4f55 100644 (file)
@@ -1,9 +1,5 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
-#include <limits.h>
-#define __NO_CTYPE_INLINES
-#include <ctype.h>
-#include <stdlib.h>
-
+#include <ntdll.h>
 
 /*
  * @implemented
index ee283b6..cf28c14 100644 (file)
@@ -1,8 +1,5 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
-#include <limits.h>
-#define __NO_CTYPE_INLINES
-#include <ctype.h>
-#include <stdlib.h>
+#include <ntdll.h>
 
 
 /*
index 2467c59..ae0cab5 100644 (file)
@@ -1,7 +1,5 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
-#include <limits.h>
-#include <ctype.h>
-#include <stdlib.h>
+#include <ntdll.h>
 
 
 /*
index cc35a3b..e7c8ce7 100644 (file)
@@ -1,8 +1,5 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
-#include <limits.h>
-#include <ctype.h>
-#include <stdlib.h>
-
+#include <ntdll.h>
 
 /*
  * Convert a unicode string to an unsigned long integer.
index 394b6cb..7368ef8 100644 (file)
@@ -1,5 +1,5 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
-#include <stdlib.h>
+#include <ntdll.h>
 
 /*
  * @implemented
index b406c09..a27f901 100644 (file)
@@ -6,8 +6,7 @@
  * PURPOSE:         converts a unicode string to 64 bit integer
  */
 
-#include <stdlib.h>
-#include <ctype.h>
+#include <ntdll.h>
 
 /*
  * @implemented
index 2a60cbb..603dd83 100644 (file)
@@ -1,5 +1,5 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
-#include <stdlib.h>
+#include <ntdll.h>
 
 /*
  * @implemented
index a2dd168..d327a83 100644 (file)
@@ -10,8 +10,7 @@
  *                  29/12/1999: Added missing functions and changed
  *                              all functions to use ctype table
  */
-#undef __MSVCRT__
-#include <ctype.h>
+#include <ntdll.h>
 
 #undef _pctype
 
index 1597a05..d888264 100644 (file)
@@ -1,6 +1,5 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
-#include <string.h>
-#include <ctype.h>
+#include <ntdll.h>
 
 /*
  * @implemented
index ecd1afa..7edba7a 100644 (file)
@@ -1,6 +1,5 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
-#include <string.h>
-#include <ctype.h>
+#include <ntdll.h>
 
 /*
  * @implemented
index e033947..f783dc0 100644 (file)
@@ -8,8 +8,7 @@
  * Copyright 1997 Uwe Bonnes
  */
 
-#include <string.h>
-#include <ctype.h>
+#include <ntdll.h>
 
 /*
  * @implemented
index a0d732e..5befa7a 100644 (file)
@@ -1,6 +1,5 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
-#include <string.h>
-#include <ctype.h>
+#include <ntdll.h>
 
 /*
  * @implemented
index 6eafaa2..7744164 100644 (file)
@@ -1,6 +1,5 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
-#include <string.h>
-//#include <unconst.h>
+#include <ntdll.h>
 
 /*
  * @implemented
index 36e41c8..0904349 100644 (file)
@@ -9,8 +9,7 @@
  */
 
 
-#include <string.h>
-#include <ctype.h>
+#include <ntdll.h>
 
 /*
  * @implemented
index 1767e24..9390017 100644 (file)
@@ -12,7 +12,7 @@
 
 /* INCLUDES *****************************************************************/
 
-#include <wchar.h>
+#include <ntdll.h>
 
 
 /* FUNCTIONS *****************************************************************/