workarounds for msvc compile. Add precomp.h to a bunch of files, inline -> __inline, other misc changes. crt.lib now has 154 errors building on msvc vs 1800
Modified: trunk/reactos/lib/crt/float/clearfp.c
Modified: trunk/reactos/lib/crt/float/fpecode.c
Modified: trunk/reactos/lib/crt/include/internal/debug.h
Modified: trunk/reactos/lib/crt/io/dup2.c
Modified: trunk/reactos/lib/crt/io/isatty.c
Modified: trunk/reactos/lib/crt/io/open.c
Modified: trunk/reactos/lib/crt/io/setmode.c
Modified: trunk/reactos/lib/crt/io/utime.c
Modified: trunk/reactos/lib/crt/misc/lock.c
Modified: trunk/reactos/lib/crt/precomp.h
Modified: trunk/reactos/lib/crt/signal/signal.c
Modified: trunk/reactos/lib/crt/stdio/allocfil.c
Modified: trunk/reactos/lib/crt/stdio/clearerr.c
Modified: trunk/reactos/lib/crt/stdio/fclose.c
Modified: trunk/reactos/lib/crt/stdio/fdopen.c
Modified: trunk/reactos/lib/crt/stdio/feof.c
Modified: trunk/reactos/lib/crt/stdio/ferror.c
Modified: trunk/reactos/lib/crt/stdio/fflush.c
Modified: trunk/reactos/lib/crt/stdio/fgetc.c
Modified: trunk/reactos/lib/crt/stdio/fgets.c
Modified: trunk/reactos/lib/crt/stdio/fgetws.c
Modified: trunk/reactos/lib/crt/stdio/filbuf.c
Modified: trunk/reactos/lib/crt/stdio/flsbuf.c
Modified: trunk/reactos/lib/crt/stdio/fprintf.c
Modified: trunk/reactos/lib/crt/stdio/fputc.c
Modified: trunk/reactos/lib/crt/stdio/fread.c
Modified: trunk/reactos/lib/crt/stdio/fseek.c
Modified: trunk/reactos/lib/crt/stdio/fsetpos.c
Modified: trunk/reactos/lib/crt/stdio/ftell.c
Modified: trunk/reactos/lib/crt/stdio/fwalk.c
Modified: trunk/reactos/lib/crt/stdio/fwrite.c
Modified: trunk/reactos/lib/crt/stdio/getchar.c
Modified: trunk/reactos/lib/crt/stdio/putchar.c
Modified: trunk/reactos/lib/crt/stdio/putwchar.c
Modified: trunk/reactos/lib/crt/stdio/rewind.c
Modified: trunk/reactos/lib/crt/stdio/rmtmp.c
Modified: trunk/reactos/lib/crt/stdio/setbuf.c
Modified: trunk/reactos/lib/crt/stdio/setvbuf.c
Modified: trunk/reactos/lib/crt/stdio/sprintf.c
Modified: trunk/reactos/lib/crt/stdio/stdhnd.c
Modified: trunk/reactos/lib/crt/stdio/tmpfile.c
Modified: trunk/reactos/lib/crt/stdio/ungetc.c
Modified: trunk/reactos/lib/crt/stdio/vfprintf.c
Modified: trunk/reactos/lib/crt/stdio/vsprintf.c
Modified: trunk/reactos/lib/crt/stdlib/errno.c
Modified: trunk/reactos/lib/crt/stdlib/rand.c
Modified: trunk/reactos/lib/crt/stdlib/strtoul.c
Modified: trunk/reactos/lib/crt/stdlib/strtoull.c
Modified: trunk/reactos/lib/crt/stdlib/wcstombs.c
Modified: trunk/reactos/lib/crt/string/lasttok.c
Modified: trunk/reactos/lib/crt/string/strtok.c
Modified: trunk/reactos/lib/crt/sys_stat/futime.c
Modified: trunk/reactos/lib/crt/time/clock.c
Modified: trunk/reactos/lib/crt/time/strdate.c
Modified: trunk/reactos/lib/crt/time/strtime.c
Modified: trunk/reactos/lib/crt/time/wstrdate.c
Modified: trunk/reactos/lib/crt/time/wstrtime.c
Modified: trunk/reactos/lib/crt/wine/cppexcept.c
Modified: trunk/reactos/lib/crt/wine/scanf.c
Modified: trunk/reactos/lib/crt/wstring/wcsdup.c
Modified: trunk/reactos/lib/crt/wstring/wcstok.c
Modified: trunk/reactos/lib/crt/wstring/wlasttok.c

Modified: trunk/reactos/lib/crt/float/clearfp.c
--- trunk/reactos/lib/crt/float/clearfp.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/float/clearfp.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,5 +1,7 @@
 #include <float.h>
 
+unsigned int _statusfp( void );
+
 /*
  * @implemented
  */

Modified: trunk/reactos/lib/crt/float/fpecode.c
--- trunk/reactos/lib/crt/float/fpecode.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/float/fpecode.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,3 +1,4 @@
+#include "precomp.h"
 #include <float.h>
 #include <internal/tls.h>
 

Modified: trunk/reactos/lib/crt/include/internal/debug.h
--- trunk/reactos/lib/crt/include/internal/debug.h	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/include/internal/debug.h	2005-11-15 05:31:41 UTC (rev 19240)
@@ -34,7 +34,11 @@
 
 
 #ifdef DBG
-   #define DPRINT1(args...) do { DbgPrint("(MSVCRT:%s:%d) ",__FILE__,__LINE__); DbgPrint(args); } while(0);
+   #ifdef __GNUC__
+      #define DPRINT1(args...) do { DbgPrint("(MSVCRT:%s:%d) ",__FILE__,__LINE__); DbgPrint(args); } while(0);
+   #else
+      #define DPRINT1 DbgPrint
+   #endif
    #define CHECKPOINT1 do { DbgPrint("MSVCRT:%s:%d\n",__FILE__,__LINE__); } while(0);
 #else
    #ifdef __GNUC__

Modified: trunk/reactos/lib/crt/io/dup2.c
--- trunk/reactos/lib/crt/io/dup2.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/io/dup2.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,3 +1,4 @@
+#include "precomp.h"
 #include <io.h>
 #include <internal/file.h>
 

Modified: trunk/reactos/lib/crt/io/isatty.c
--- trunk/reactos/lib/crt/io/isatty.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/io/isatty.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,3 +1,5 @@
+#include "precomp.h"
+
 #include <internal/file.h>
 
 #define NDEBUG

Modified: trunk/reactos/lib/crt/io/open.c
--- trunk/reactos/lib/crt/io/open.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/io/open.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -80,7 +80,7 @@
  * INTERNAL
  */
  /*
-static inline FD_INFO* fdinfo(int fd)
+static __inline FD_INFO* fdinfo(int fd)
 {
    FD_INFO* bucket = __pioinfo[fd >> FDINFO_ENTRIES_PER_BUCKET_SHIFT];
    if (!bucket){
@@ -94,7 +94,7 @@
 /*
  * INTERNAL
  */
-inline BOOL is_valid_fd(int fd)
+__inline BOOL is_valid_fd(int fd)
 {
    BOOL b = (fd >= 0 && fd < g_fdend && (fdinfo(fd)->fdflags & FOPEN));
 

Modified: trunk/reactos/lib/crt/io/setmode.c
--- trunk/reactos/lib/crt/io/setmode.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/io/setmode.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -8,6 +8,7 @@
  * UPDATE HISTORY:
  *              28/12/98: Created
  */
+#include "precomp.h"
 
 #include <io.h>
 #include <stdio.h>

Modified: trunk/reactos/lib/crt/io/utime.c
--- trunk/reactos/lib/crt/io/utime.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/io/utime.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,3 +1,5 @@
+#include "precomp.h"
+
 #include <stdio.h>
 #include <io.h>
 #include <errno.h>

Modified: trunk/reactos/lib/crt/misc/lock.c
--- trunk/reactos/lib/crt/misc/lock.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/misc/lock.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -30,18 +30,18 @@
 
 static LOCKTABLEENTRY lock_table[ _TOTAL_LOCKS ];
 
-static inline void msvcrt_mlock_set_entry_initialized( int locknum, BOOL initialized )
+static __inline void msvcrt_mlock_set_entry_initialized( int locknum, BOOL initialized )
 {
   lock_table[ locknum ].bInit = initialized;
 }
 
-static inline void msvcrt_initialize_mlock( int locknum )
+static __inline void msvcrt_initialize_mlock( int locknum )
 {
   InitializeCriticalSection( &(lock_table[ locknum ].crit) );
   msvcrt_mlock_set_entry_initialized( locknum, TRUE );
 }
 
-static inline void msvcrt_uninitialize_mlock( int locknum )
+static __inline void msvcrt_uninitialize_mlock( int locknum )
 {
   DeleteCriticalSection( &(lock_table[ locknum ].crit) );
   msvcrt_mlock_set_entry_initialized( locknum, FALSE );

Modified: trunk/reactos/lib/crt/precomp.h
--- trunk/reactos/lib/crt/precomp.h	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/precomp.h	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1 +1,3 @@
+#define CRT_SECURE_NO_DEPRECATE
+
 #include <windows.h>

Modified: trunk/reactos/lib/crt/signal/signal.c
--- trunk/reactos/lib/crt/signal/signal.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/signal/signal.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,3 +1,5 @@
+#include "precomp.h"
+
 #include <signal.h>
 #include <stdlib.h>
 #include <errno.h>

Modified: trunk/reactos/lib/crt/stdio/allocfil.c
--- trunk/reactos/lib/crt/stdio/allocfil.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/allocfil.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,4 +1,5 @@
 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
+#include "precomp.h"
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>

Modified: trunk/reactos/lib/crt/stdio/clearerr.c
--- trunk/reactos/lib/crt/stdio/clearerr.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/clearerr.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,4 +1,5 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
+#include "precomp.h"
 #include <stdio.h>
 #include <errno.h>
 #include <internal/file.h>

Modified: trunk/reactos/lib/crt/stdio/fclose.c
--- trunk/reactos/lib/crt/stdio/fclose.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/fclose.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,5 +1,5 @@
 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
-
+#include "precomp.h"
 #include <stdio.h>
 #include <stdarg.h>
 #include <io.h>

Modified: trunk/reactos/lib/crt/stdio/fdopen.c
--- trunk/reactos/lib/crt/stdio/fdopen.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/fdopen.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,14 +1,9 @@
+#include "precomp.h"
 
-
 #include <stdio.h>
 #include <tchar.h>
 #include <internal/file.h>
 
-
-
-
-
-
 /*
  * @implemented
  */

Modified: trunk/reactos/lib/crt/stdio/feof.c
--- trunk/reactos/lib/crt/stdio/feof.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/feof.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,4 +1,5 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
+#include "precomp.h"
 #include <stdio.h>
 #include <errno.h>
 #include <internal/file.h>

Modified: trunk/reactos/lib/crt/stdio/ferror.c
--- trunk/reactos/lib/crt/stdio/ferror.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/ferror.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,4 +1,5 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
+#include "precomp.h"
 #include <stdio.h>
 #include <internal/file.h>
 

Modified: trunk/reactos/lib/crt/stdio/fflush.c
--- trunk/reactos/lib/crt/stdio/fflush.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/fflush.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -10,7 +10,7 @@
 /* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */
 /* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */
 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
-
+#include "precomp.h"
 #include <stdio.h>
 #include <stdarg.h>
 #include <errno.h>

Modified: trunk/reactos/lib/crt/stdio/fgetc.c
--- trunk/reactos/lib/crt/stdio/fgetc.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/fgetc.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -9,6 +9,7 @@
 		25/02/99: Added fgetwc
  */
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
+#include "precomp.h"
 #include <stdio.h>
 #include <internal/file.h>
 

Modified: trunk/reactos/lib/crt/stdio/fgets.c
--- trunk/reactos/lib/crt/stdio/fgets.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/fgets.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -24,7 +24,7 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
-
+#include "precomp.h"
 #include <stdio.h>
 #include <internal/file.h>
 

Modified: trunk/reactos/lib/crt/stdio/fgetws.c
--- trunk/reactos/lib/crt/stdio/fgetws.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/fgetws.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -24,7 +24,7 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
-
+#include "precomp.h"
 #include <stdio.h>
 #include <internal/file.h>
 

Modified: trunk/reactos/lib/crt/stdio/filbuf.c
--- trunk/reactos/lib/crt/stdio/filbuf.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/filbuf.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,7 +1,7 @@
 /* Copyright (C) 1997 DJ Delorie, see COPYING.DJ for details */
 /* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */
 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
-
+#include "precomp.h"
 #include <stdio.h>
 #include <sys/types.h>
 #include <stdlib.h>

Modified: trunk/reactos/lib/crt/stdio/flsbuf.c
--- trunk/reactos/lib/crt/stdio/flsbuf.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/flsbuf.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,6 +1,6 @@
 /* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */
 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
-
+#include "precomp.h"
 #include <stdio.h>
 #include <wchar.h>
 #include <sys/types.h>

Modified: trunk/reactos/lib/crt/stdio/fprintf.c
--- trunk/reactos/lib/crt/stdio/fprintf.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/fprintf.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,4 +1,6 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
+#include "precomp.h"
+
 #include <stdio.h>
 #include <wchar.h>
 #include <tchar.h>

Modified: trunk/reactos/lib/crt/stdio/fputc.c
--- trunk/reactos/lib/crt/stdio/fputc.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/fputc.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,4 +1,6 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
+#include "precomp.h"
+
 #include <stdio.h>
 #include <wchar.h>
 #include <internal/file.h>

Modified: trunk/reactos/lib/crt/stdio/fread.c
--- trunk/reactos/lib/crt/stdio/fread.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/fread.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,3 +1,5 @@
+#include "precomp.h"
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

Modified: trunk/reactos/lib/crt/stdio/fseek.c
--- trunk/reactos/lib/crt/stdio/fseek.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/fseek.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -2,6 +2,8 @@
 /* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */
 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
 
+#include "precomp.h"
+
 #include <stdio.h>
 #include <errno.h>
 #include <fcntl.h>

Modified: trunk/reactos/lib/crt/stdio/fsetpos.c
--- trunk/reactos/lib/crt/stdio/fsetpos.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/fsetpos.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,4 +1,6 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
+#include "precomp.h"
+
 #include <stdio.h>
 #include <errno.h>
 #include <internal/file.h>

Modified: trunk/reactos/lib/crt/stdio/ftell.c
--- trunk/reactos/lib/crt/stdio/ftell.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/ftell.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,6 +1,8 @@
 /* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */
 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
 
+#include "precomp.h"
+
 #include <stdio.h>
 #include <fcntl.h>
 #include <io.h>

Modified: trunk/reactos/lib/crt/stdio/fwalk.c
--- trunk/reactos/lib/crt/stdio/fwalk.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/fwalk.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,4 +1,6 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
+#include "precomp.h"
+
 #include <stdio.h>
 #include <internal/file.h>
 

Modified: trunk/reactos/lib/crt/stdio/fwrite.c
--- trunk/reactos/lib/crt/stdio/fwrite.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/fwrite.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,3 +1,4 @@
+#include "precomp.h"
 
 #include <stdio.h>
 #include <stdlib.h>

Modified: trunk/reactos/lib/crt/stdio/getchar.c
--- trunk/reactos/lib/crt/stdio/getchar.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/getchar.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -23,6 +23,7 @@
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
+#include "precomp.h"
 
 #include <stdio.h>
 #include <internal/file.h>

Modified: trunk/reactos/lib/crt/stdio/putchar.c
--- trunk/reactos/lib/crt/stdio/putchar.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/putchar.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -8,6 +8,8 @@
  * UPDATE HISTORY:
  *              28/12/98: Created
  */
+#include "precomp.h"
+
 #include <stdio.h>
 #include <tchar.h>
 #include <internal/file.h>

Modified: trunk/reactos/lib/crt/stdio/putwchar.c
--- trunk/reactos/lib/crt/stdio/putwchar.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/putwchar.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,3 +1,5 @@
+#include "precomp.h"
+
 #define UNICODE
 #define _UNICODE
 

Modified: trunk/reactos/lib/crt/stdio/rewind.c
--- trunk/reactos/lib/crt/stdio/rewind.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/rewind.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,4 +1,5 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
+#include "precomp.h"
 
 #include <stdio.h>
 #include <io.h>

Modified: trunk/reactos/lib/crt/stdio/rmtmp.c
--- trunk/reactos/lib/crt/stdio/rmtmp.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/rmtmp.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -8,6 +8,7 @@
  *                  Created 19/01/99
  * NOTE		    Not tested.
  */
+#include "precomp.h"
 
 #include <stdio.h>
 #include <string.h>

Modified: trunk/reactos/lib/crt/stdio/setbuf.c
--- trunk/reactos/lib/crt/stdio/setbuf.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/setbuf.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,4 +1,6 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
+#include "precomp.h"
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <internal/file.h>

Modified: trunk/reactos/lib/crt/stdio/setvbuf.c
--- trunk/reactos/lib/crt/stdio/setvbuf.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/setvbuf.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,6 +1,8 @@
 /* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */
 /* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
+#include "precomp.h"
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <io.h>

Modified: trunk/reactos/lib/crt/stdio/sprintf.c
--- trunk/reactos/lib/crt/stdio/sprintf.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/sprintf.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -18,6 +18,8 @@
 not, write to the Free Software Foundation, Inc., 675 Mass Ave,
 Cambridge, MA 02139, USA.  */
 
+#include "precomp.h"
+
 #include <stdarg.h>
 #include <stdio.h>
 #include <wchar.h>

Modified: trunk/reactos/lib/crt/stdio/stdhnd.c
--- trunk/reactos/lib/crt/stdio/stdhnd.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/stdhnd.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,4 +1,6 @@
 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
+#include "precomp.h"
+
 #include <stdio.h>
 #include <internal/file.h>
 

Modified: trunk/reactos/lib/crt/stdio/tmpfile.c
--- trunk/reactos/lib/crt/stdio/tmpfile.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/tmpfile.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -2,6 +2,7 @@
 /* Copyright (C) 1997 DJ Delorie, see COPYING.DJ for details */
 /* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */
 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
+#include "precomp.h"
 
 #include <stdio.h>
 #include <string.h>

Modified: trunk/reactos/lib/crt/stdio/ungetc.c
--- trunk/reactos/lib/crt/stdio/ungetc.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/ungetc.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,5 +1,7 @@
 /* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
+#include "precomp.h"
+
 #include <stdio.h>
 #include <wchar.h>
 #include <errno.h>

Modified: trunk/reactos/lib/crt/stdio/vfprintf.c
--- trunk/reactos/lib/crt/stdio/vfprintf.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/vfprintf.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,4 +1,6 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
+#include "precomp.h"
+
 #include <stdarg.h>
 #include <stdio.h>
 #include <malloc.h>

Modified: trunk/reactos/lib/crt/stdio/vsprintf.c
--- trunk/reactos/lib/crt/stdio/vsprintf.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdio/vsprintf.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,4 +1,6 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
+#include "precomp.h"
+
 #include <stdio.h>
 #include <stdarg.h>
 #include <limits.h>

Modified: trunk/reactos/lib/crt/stdlib/errno.c
--- trunk/reactos/lib/crt/stdlib/errno.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdlib/errno.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,7 +1,7 @@
 /* $Id$
  *
  */
-
+#include "precomp.h"
 #include <errno.h>
 #include <internal/tls.h>
 #include <internal/file.h>

Modified: trunk/reactos/lib/crt/stdlib/rand.c
--- trunk/reactos/lib/crt/stdlib/rand.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdlib/rand.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,4 +1,5 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
+#include "precomp.h"
 
 #include <stdlib.h>
 #include <internal/tls.h>

Modified: trunk/reactos/lib/crt/stdlib/strtoul.c
--- trunk/reactos/lib/crt/stdlib/strtoul.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdlib/strtoul.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,4 +1,6 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
+#include "precomp.h"
+
 #include <limits.h>
 #include <ctype.h>
 #include <errno.h>

Modified: trunk/reactos/lib/crt/stdlib/strtoull.c
--- trunk/reactos/lib/crt/stdlib/strtoull.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdlib/strtoull.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,10 +1,11 @@
 /* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
+#include "precomp.h"
+
 #include <limits.h>
 #include <ctype.h>
 #include <errno.h>
 #include <stdlib.h>
-#include <stdint.h>
 #include <internal/file.h>
 
 /*

Modified: trunk/reactos/lib/crt/stdlib/wcstombs.c
--- trunk/reactos/lib/crt/stdlib/wcstombs.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/stdlib/wcstombs.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -16,6 +16,8 @@
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#include "precomp.h"
+
 #include <stdlib.h>
 #include <wchar.h>
 #include <errno.h>

Modified: trunk/reactos/lib/crt/string/lasttok.c
--- trunk/reactos/lib/crt/string/lasttok.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/string/lasttok.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,3 +1,5 @@
+#include "precomp.h"
+
 #include <internal/tls.h>
 #include <assert.h>
 

Modified: trunk/reactos/lib/crt/string/strtok.c
--- trunk/reactos/lib/crt/string/strtok.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/string/strtok.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,4 +1,5 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
+#include "precomp.h"
 
 #include <string.h>
 #include <internal/tls.h>

Modified: trunk/reactos/lib/crt/sys_stat/futime.c
--- trunk/reactos/lib/crt/sys_stat/futime.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/sys_stat/futime.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,3 +1,5 @@
+#include "precomp.h"
+
 #include <malloc.h>
 #include <stdlib.h>
 #include <sys/utime.h>

Modified: trunk/reactos/lib/crt/time/clock.c
--- trunk/reactos/lib/crt/time/clock.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/time/clock.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -12,8 +12,6 @@
 #include <time.h>
 #include <internal/file.h>
 
-VOID STDCALL GetSystemTimeAsFileTime(LPFILETIME  lpSystemTimeAsFileTime );
-
 /*
  * @implemented
  */

Modified: trunk/reactos/lib/crt/time/strdate.c
--- trunk/reactos/lib/crt/time/strdate.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/time/strdate.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -7,6 +7,8 @@
  * UPDATE HISTORY:
  *              28/12/98: Created
  */
+#include "precomp.h"
+
 #include <time.h>
 #include <stdio.h>
 #include <errno.h>

Modified: trunk/reactos/lib/crt/time/strtime.c
--- trunk/reactos/lib/crt/time/strtime.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/time/strtime.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -7,6 +7,8 @@
  * UPDATE HISTORY:
  *              28/12/98: Created
  */
+#include "precomp.h"
+
 #include <time.h>
 #include <stdio.h>
 #include <errno.h>

Modified: trunk/reactos/lib/crt/time/wstrdate.c
--- trunk/reactos/lib/crt/time/wstrdate.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/time/wstrdate.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -7,6 +7,7 @@
  * UPDATE HISTORY:
  *              28/12/98: Created
  */
+#include "precomp.h"
 #include <time.h>
 #include <stdio.h>
 #include <errno.h>

Modified: trunk/reactos/lib/crt/time/wstrtime.c
--- trunk/reactos/lib/crt/time/wstrtime.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/time/wstrtime.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -7,6 +7,7 @@
  * UPDATE HISTORY:
  *              28/12/98: Created
  */
+#include "precomp.h"
 #include <time.h>
 #include <stdio.h>
 #include <errno.h>

Modified: trunk/reactos/lib/crt/wine/cppexcept.c
--- trunk/reactos/lib/crt/wine/cppexcept.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/wine/cppexcept.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -50,7 +50,7 @@
                                 int nested_trylevel, CONTEXT86 *context );
 
 /* call a function with a given ebp */
-inline static void *call_ebp_func( void *func, void *ebp )
+__inline static void *call_ebp_func( void *func, void *ebp )
 {
     void *ret;
     __asm__ __volatile__ ("pushl %%ebp; movl %2,%%ebp; call *%%eax; popl %%ebp" \
@@ -59,7 +59,7 @@
 }
 
 /* call a copy constructor */
-inline static void call_copy_ctor( void *func, void *this, void *src, int has_vbase )
+__inline static void call_copy_ctor( void *func, void *this, void *src, int has_vbase )
 {
     TRACE( "calling copy ctor %p object %p src %p\n", func, this, src );
     if (has_vbase)
@@ -72,7 +72,7 @@
 }
 
 /* call the destructor of the exception object */
-inline static void call_dtor( void *func, void *object )
+__inline static void call_dtor( void *func, void *object )
 {
     __asm__ __volatile__("call *%0" : : "r" (func), "c" (object) : "eax", "edx", "memory" );
 }
@@ -261,7 +261,7 @@
 
 /* find and call the appropriate catch block for an exception */
 /* returns the address to continue execution to after the catch block was called */
-inline static void *call_catch_block( PEXCEPTION_RECORD rec, cxx_exception_frame *frame,
+__inline static void *call_catch_block( PEXCEPTION_RECORD rec, cxx_exception_frame *frame,
                                       cxx_function_descr *descr, int nested_trylevel,
                                       cxx_exception_type *info )
 {

Modified: trunk/reactos/lib/crt/wine/scanf.c
--- trunk/reactos/lib/crt/wine/scanf.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/wine/scanf.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -33,6 +33,8 @@
 #include "winternl.h"
 #include "msvcrt.h"
 */
+#include "precomp.h"
+
 #define WIN32_NO_STATUS
 
 #include <stdarg.h>

Modified: trunk/reactos/lib/crt/wstring/wcsdup.c
--- trunk/reactos/lib/crt/wstring/wcsdup.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/wstring/wcsdup.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,3 +1,5 @@
+#include "precomp.h"
+
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>

Modified: trunk/reactos/lib/crt/wstring/wcstok.c
--- trunk/reactos/lib/crt/wstring/wcstok.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/wstring/wcstok.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,3 +1,5 @@
+#include "precomp.h"
+
 #include <string.h>
 #include <internal/tls.h>
 

Modified: trunk/reactos/lib/crt/wstring/wlasttok.c
--- trunk/reactos/lib/crt/wstring/wlasttok.c	2005-11-15 02:25:28 UTC (rev 19239)
+++ trunk/reactos/lib/crt/wstring/wlasttok.c	2005-11-15 05:31:41 UTC (rev 19240)
@@ -1,3 +1,5 @@
+#include "precomp.h"
+
 #include <internal/tls.h>
 #include <assert.h>
 /*