Don't use ntdll headers in crt, use ndk
authorAlex Ionescu <aionescu@gmail.com>
Mon, 20 Jun 2005 20:22:54 +0000 (20:22 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Mon, 20 Jun 2005 20:22:54 +0000 (20:22 +0000)
svn path=/trunk/; revision=16178

reactos/lib/crt/wine/scanf.c

index 185e16d..d2c5f7c 100644 (file)
 #include "msvcrt.h"\r
 */\r
 \r
-//#include <ntdll/ntdll.h>\r
-#include <ntdll/rtl.h>\r
-//#include <ddk/ntddk.h>\r
-//#include <ntos/heap.h>\r
 #include <stdarg.h>\r
 #include <wchar.h>\r
 #include <stdio.h>\r
 #include <ctype.h>\r
 #include <internal/file.h>\r
 \r
-//#include <ntos/heap.h>\r
+#define NTOS_MODE_USER\r
+#include <ndk/ntndk.h>\r
 \r
 #define NDEBUG\r
 #include <internal/debug.h>\r
 \r
-\r
-/*\r
-This is so ugly. I tried including anything/everything, but no matter\r
-what i did i got complaints about RtlGetProcessHeap etc. being undefined.\r
--Gunnar (i hate headers)\r
-*/\r
-#define RtlFreeHeap HeapFree\r
-#define RtlAllocateHeap HeapAlloc\r
-#define RtlGetProcessHeap GetProcessHeap\r
 //#include "wine/debug.h"\r
 \r
 #define WARN DPRINT1\r