- Add DDK alignment macros and move/rename the ones in the NDK for user-mode only...
[reactos.git] / reactos / lib / rtl / rtl.h
index 2abc9fd..e80b348 100644 (file)
@@ -8,26 +8,22 @@
 
 /* INCLUDES ******************************************************************/
 
-#include <ddk/ntddk.h>
-#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>
+/* We're a core NT DLL, we don't import syscalls */
+#define _NTSYSTEM_
+#define _NTDLLBUILD_
+#define WIN32_NO_STATUS
+#define NTOS_MODE_USER
+#define _INC_SWPRINTF_INL_
+
+/* C Headers */
 #include <stdio.h>
 
-#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
+/* PSDK/NDK Headers */
+#include <windows.h>
+#include <ndk/ntndk.h>
+
+/* Internal RTL header */
+#include <reactos/helper.h>
+#include "rtlp.h"
 
 /* EOF */