Use free Windows DDK and compile with latest MinGW releases.
[reactos.git] / reactos / lib / ntdll / rtl / mem.c
index b3887f9..9664a78 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: mem.c,v 1.9 2000/06/29 23:35:31 dwelch Exp $
+/* $Id: mem.c,v 1.10 2002/09/07 15:12:40 chorns Exp $
  * 
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
 
 /* INCLUDES *****************************************************************/
 
-#include <ddk/ntddk.h>
+#define NTOS_USER_MODE
+#include <ntos.h>
 #include <string.h>
 
+#define NDEBUG
+#include <debug.h>
+
 /* FUNCTIONS *****************************************************************/
 
-ULONG
-STDCALL
-RtlCompareMemory(PVOID Source1, PVOID Source2, ULONG Length)
+#undef RtlCompareMemory
+
+SIZE_T STDCALL
+RtlCompareMemory(
+  IN CONST VOID  *Source1,
+  IN CONST VOID  *Source2,
+  IN SIZE_T  Length)
 /*
  * FUNCTION: Compares blocks of memory and returns the number of equal bytes
  * ARGUMENTS:
@@ -40,6 +48,8 @@ RtlCompareMemory(PVOID Source1, PVOID Source2, ULONG Length)
    return(total);
 }
 
+#undef RtlCompareMemoryUlong
+
 ULONG
 STDCALL
 RtlCompareMemoryUlong (
@@ -71,6 +81,8 @@ RtlCompareMemoryUlong (
 }
 
 #if 0
+
+#undef RtlCopyBytes
 VOID RtlCopyBytes(PVOID Destination,
                  CONST VOID* Source,
                  ULONG Length)
@@ -78,6 +90,8 @@ VOID RtlCopyBytes(PVOID Destination,
    RtlCopyMemory(Destination,Source,Length);
 }
 
+#undef RtlCopyMemory
+
 VOID RtlCopyMemory(VOID* Destination, CONST VOID* Source, ULONG Length)
 {
    DPRINT("RtlCopyMemory(Destination %x Source %x Length %d\n",
@@ -87,6 +101,8 @@ VOID RtlCopyMemory(VOID* Destination, CONST VOID* Source, ULONG Length)
 }
 #endif
 
+#undef RtlFillMemory
+
 VOID 
 STDCALL
 RtlFillMemory (
@@ -102,6 +118,8 @@ RtlFillMemory (
                );
 }
 
+#undef RtlFillMemoryUlong
+
 VOID
 STDCALL
 RtlFillMemoryUlong (
@@ -121,6 +139,7 @@ RtlFillMemoryUlong (
        }
 }
 
+#undef RtlZeroMemory
 
 VOID
 STDCALL
@@ -136,6 +155,7 @@ RtlZeroMemory (
                );
 }
 
+#undef RtlMoveMemory
 
 VOID
 STDCALL