Fixed a lot of warnings.
authorEric Kohl <eric.kohl@reactos.org>
Mon, 25 Jun 2001 12:32:56 +0000 (12:32 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Mon, 25 Jun 2001 12:32:56 +0000 (12:32 +0000)
svn path=/trunk/; revision=2008

reactos/include/ddk/rtl.h
reactos/include/ntos/types.h
reactos/lib/secur32/lsa.c
reactos/subsys/csrss/makefile
reactos/subsys/smss/makefile

index 48b4713..87e4e5f 100644 (file)
@@ -1,13 +1,17 @@
-/* $Id: rtl.h,v 1.53 2001/06/22 12:39:48 ekohl Exp $
+/* $Id: rtl.h,v 1.54 2001/06/25 12:31:00 ekohl Exp $
  * 
  */
 
 #ifndef __DDK_RTL_H
 #define __DDK_RTL_H
 
+#if defined(__NTOSKRNL__) || defined(__NTDRIVER__) || defined(__NTHAL__) || defined(__NTDLL__) || defined (__NTAPP__)
+
 #include <stddef.h>
 #include <stdarg.h>
 
+#endif /* __NTOSKRNL__ || __NTDRIVER__ || __NTHAL__ || __NTDLL__ || __NTAPP__ */
+
 #include <pe.h>
 
 typedef struct _INITIAL_TEB
@@ -2077,6 +2081,8 @@ VOID STDCALL RtlMapGenericMask (PACCESS_MASK AccessMask, PGENERIC_MAPPING Generi
 
 /*  functions exported from NTOSKRNL.EXE which are considered RTL  */
 
+#if defined(__NTOSKRNL__) || defined(__NTDRIVER__) || defined(__NTHAL__) || defined(__NTDLL__) || defined(__NTAPP__)
+
 char *_itoa (int value, char *string, int radix);
 int _snprintf(char * buf, size_t cnt, const char *fmt, ...);
 int _snwprintf(wchar_t *buf, size_t cnt, const wchar_t *fmt, ...);
@@ -2149,4 +2155,6 @@ wchar_t *wcsstr(const wchar_t *s,const wchar_t *b);
 size_t wcstombs (char *mbstr, const wchar_t *wcstr, size_t count);
 int wctomb (char *mbchar, wchar_t wchar);
 
+#endif /* __NTOSKRNL__ || __NTDRIVER__ || __NTHAL__ || __NTDLL__ || __NTAPP__ */
+
 #endif /* __DDK_RTL_H */
index b87b2df..a703e1b 100644 (file)
@@ -117,6 +117,14 @@ typedef char CCHAR;
 #define FALSE 0
 #define TRUE 1
 
+#ifndef NULL
+#ifdef __cplusplus
+#define NULL 0
+#else
+#define NULL ((void*)0)
+#endif /* __cplusplus */
+#endif /* NULL */
+
 typedef const unsigned short *PCWSTR;
 
 typedef char* PCSZ;
index 2a3cd5f..3c59510 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: lsa.c,v 1.1 2000/08/12 19:33:19 dwelch Exp $
+/* $Id: lsa.c,v 1.2 2001/06/25 12:32:56 ekohl Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS system libraries
@@ -14,6 +14,7 @@
 #include <ddk/ntddk.h>
 #include <napi/lpc.h>
 #include <lsass/lsass.h>
+#include <string.h>
 
 /* GLOBALS *******************************************************************/
 
index 9d3e6d7..81c229a 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: makefile,v 1.12 2001/03/25 02:34:30 dwelch Exp $
+# $Id: makefile,v 1.13 2001/06/25 12:32:27 ekohl Exp $
 #
 # CSRSS: Client/server runtime subsystem
 #
@@ -8,7 +8,7 @@ PATH_TO_TOP = ../..
 
 TARGET=csrss
 
-CFLAGS = -I.
+CFLAGS = -D__NTAPP__ -I.
 
 OBJECTS_API = api/process.o api/wapi.o api/conio.o api/handle.o
 
index 1d20ad0..b48789b 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: makefile,v 1.6 2000/11/20 19:59:14 ekohl Exp $
+# $Id: makefile,v 1.7 2001/06/25 12:32:39 ekohl Exp $
 #
 # Session Manager
 #
@@ -8,7 +8,7 @@ PATH_TO_TOP = ../..
 
 TARGET=smss
 
-BASE_CFLAGS = -I../../include
+CFLAGS = -D__NTAPP__
 
 OBJECTS = $(TARGET).o init.o smapi.o $(TARGET).coff