bootstrap
[reactos.git] / ntoskrnl / rtl / mem.c
index dfdbdd7..5f73fbf 100644 (file)
@@ -19,6 +19,8 @@
 
 /* FUNCTIONS *****************************************************************/
 
+#ifndef LIBCAPTIVE
+
 NTSTATUS STDCALL
 MmCopyToCaller(PVOID Dest, PVOID Src, ULONG NumberOfBytes)
 {
@@ -78,7 +80,7 @@ RtlCompareMemory (
  * RETURNS: Number of equal bytes
  */
 {
-   int i,total;
+   ULONG i,total;
 
    for (i=0,total=0;i<Length;i++)
      {
@@ -109,7 +111,7 @@ RtlCompareMemoryUlong (
 {
        PULONG ptr = (PULONG)Source;
        ULONG  len = Length / sizeof(ULONG);
-       int i;
+       ULONG i;
 
        for (i = 0; i < len; i++)
        {
@@ -141,6 +143,8 @@ VOID RtlCopyMemory(VOID* Destination, CONST VOID* Source, ULONG Length)
 }
 #endif
 
+#endif /* LIBCAPTIVE */
+
 VOID
 STDCALL
 RtlFillMemory (
@@ -152,6 +156,7 @@ RtlFillMemory (
        memset(Destination,Fill,Length);
 }
 
+#ifndef LIBCAPTIVE
 
 VOID
 STDCALL
@@ -188,6 +193,7 @@ RtlMoveMemory (
                );
 }
 
+#endif /* LIBCAPTIVE */
 
 VOID
 STDCALL