Build RTL with NDK
Modified: trunk/reactos/lib/rtl/rtl.h
Modified: trunk/reactos/lib/rtl/timezone.c
Modified: trunk/reactos/lib/rtl/unicode.c

Modified: trunk/reactos/lib/rtl/rtl.h
--- trunk/reactos/lib/rtl/rtl.h	2005-06-19 22:05:18 UTC (rev 16120)
+++ trunk/reactos/lib/rtl/rtl.h	2005-06-19 22:05:50 UTC (rev 16121)
@@ -8,29 +8,22 @@
 
 /* INCLUDES ******************************************************************/
 
-#include <ddk/ntddk.h>
-#include <ddk/ntifs.h>
+/* PSDK/NDK Headers */
 #include <windows.h>
-#include <ntdll/rtl.h>
-#include <napi/teb.h>
-#include <ntos/minmax.h>
-#include <string.h>
-#include <napi/i386/segment.h>
-#include <ntdll/ldr.h>
-#include <ntdll/base.h>
-#include <ntdll/rtl.h>
-#include <rosrtl/thread.h>
-#include <winerror.h>
-#include <ntos.h>
-#include <stdio.h>
+#define NTOS_MODE_USER
+#include <ndk/ntndk.h>
 
-#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
-#define ROUNDUP(a,b)    ((((a)+(b)-1)/(b))*(b))
-#ifndef HIWORD
-#define HIWORD(l) ((WORD)(((DWORD)(l) >> 16) & 0xFFFF))
-#endif
-#ifndef LOWORD
-#define LOWORD(l) ((WORD)(l))
-#endif
+/* Helper Header */
+#include <reactos/helper.h>
 
+/* LIBSUPP Header */
+#include "libsupp.h"
+
+/* FIXME: Move this somewhere else, maybe */
+#ifdef DBG
+extern VOID FASTCALL CHECK_PAGED_CODE_RTL(char *file, int line);
+#define PAGED_CODE_RTL() CHECK_PAGED_CODE_RTL(__FILE__, __LINE__)
+#else
+#define PAGED_CODE_RTL()
+#endif
 /* EOF */

Modified: trunk/reactos/lib/rtl/timezone.c
--- trunk/reactos/lib/rtl/timezone.c	2005-06-19 22:05:18 UTC (rev 16120)
+++ trunk/reactos/lib/rtl/timezone.c	2005-06-19 22:05:50 UTC (rev 16121)
@@ -22,7 +22,7 @@
  * @implemented
  */
 NTSTATUS STDCALL
-RtlQueryTimeZoneInformation(PTIME_ZONE_INFORMATION TimeZoneInformation)
+RtlQueryTimeZoneInformation(LPTIME_ZONE_INFORMATION TimeZoneInformation)
 {
    RTL_QUERY_REGISTRY_TABLE QueryTable[8];
    UNICODE_STRING StandardName;
@@ -86,7 +86,7 @@
  * @implemented
  */
 NTSTATUS STDCALL
-RtlSetTimeZoneInformation(PTIME_ZONE_INFORMATION TimeZoneInformation)
+RtlSetTimeZoneInformation(LPTIME_ZONE_INFORMATION TimeZoneInformation)
 {
    ULONG Length;
    NTSTATUS Status;

Modified: trunk/reactos/lib/rtl/unicode.c
--- trunk/reactos/lib/rtl/unicode.c	2005-06-19 22:05:18 UTC (rev 16120)
+++ trunk/reactos/lib/rtl/unicode.c	2005-06-19 22:05:50 UTC (rev 16121)
@@ -21,6 +21,7 @@
  */
 #define __NTDRIVER__
 #include "rtl.h"
+#include <rosrtl/string.h>
 
 #define NDEBUG
 #include <debug.h>