diff --git a/reactos/lib/crt/float/clearfp.c b/reactos/lib/crt/float/clearfp.c index bace5d2dde1..59bf640f48d 100644 --- a/reactos/lib/crt/float/clearfp.c +++ b/reactos/lib/crt/float/clearfp.c @@ -1,5 +1,7 @@ #include +unsigned int _statusfp( void ); + /* * @implemented */ diff --git a/reactos/lib/crt/float/fpecode.c b/reactos/lib/crt/float/fpecode.c index d7c8a10909a..2b8a13d85ae 100644 --- a/reactos/lib/crt/float/fpecode.c +++ b/reactos/lib/crt/float/fpecode.c @@ -1,3 +1,4 @@ +#include "precomp.h" #include #include diff --git a/reactos/lib/crt/include/internal/debug.h b/reactos/lib/crt/include/internal/debug.h index 0b19203764b..f25e1613ad5 100644 --- a/reactos/lib/crt/include/internal/debug.h +++ b/reactos/lib/crt/include/internal/debug.h @@ -34,7 +34,11 @@ unsigned long DbgPrint(char *Format,...); #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__ diff --git a/reactos/lib/crt/io/dup2.c b/reactos/lib/crt/io/dup2.c index 9d09e8886ef..53333de01a4 100644 --- a/reactos/lib/crt/io/dup2.c +++ b/reactos/lib/crt/io/dup2.c @@ -1,3 +1,4 @@ +#include "precomp.h" #include #include diff --git a/reactos/lib/crt/io/isatty.c b/reactos/lib/crt/io/isatty.c index 189ef81dfc2..501319a39c1 100644 --- a/reactos/lib/crt/io/isatty.c +++ b/reactos/lib/crt/io/isatty.c @@ -1,3 +1,5 @@ +#include "precomp.h" + #include #define NDEBUG diff --git a/reactos/lib/crt/io/open.c b/reactos/lib/crt/io/open.c index 6f5df958382..b6a80e32a7d 100644 --- a/reactos/lib/crt/io/open.c +++ b/reactos/lib/crt/io/open.c @@ -80,7 +80,7 @@ static int g_fdend = 3; /* highest allocated fd */ * 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 @@ static inline FD_INFO* fdinfo(int fd) /* * 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)); diff --git a/reactos/lib/crt/io/setmode.c b/reactos/lib/crt/io/setmode.c index 31e529499b8..3319045bd7b 100644 --- a/reactos/lib/crt/io/setmode.c +++ b/reactos/lib/crt/io/setmode.c @@ -8,6 +8,7 @@ * UPDATE HISTORY: * 28/12/98: Created */ +#include "precomp.h" #include #include diff --git a/reactos/lib/crt/io/utime.c b/reactos/lib/crt/io/utime.c index 3a79761f8fb..28d6c025dc7 100644 --- a/reactos/lib/crt/io/utime.c +++ b/reactos/lib/crt/io/utime.c @@ -1,3 +1,5 @@ +#include "precomp.h" + #include #include #include diff --git a/reactos/lib/crt/misc/lock.c b/reactos/lib/crt/misc/lock.c index 417df9afb2d..0fea48ffbc9 100644 --- a/reactos/lib/crt/misc/lock.c +++ b/reactos/lib/crt/misc/lock.c @@ -30,18 +30,18 @@ typedef struct 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 ); diff --git a/reactos/lib/crt/precomp.h b/reactos/lib/crt/precomp.h index 776a87ce358..d74ebbdeabe 100644 --- a/reactos/lib/crt/precomp.h +++ b/reactos/lib/crt/precomp.h @@ -1 +1,3 @@ +#define CRT_SECURE_NO_DEPRECATE + #include diff --git a/reactos/lib/crt/signal/signal.c b/reactos/lib/crt/signal/signal.c index cc1dfa53ccd..81a1c4ee180 100644 --- a/reactos/lib/crt/signal/signal.c +++ b/reactos/lib/crt/signal/signal.c @@ -1,3 +1,5 @@ +#include "precomp.h" + #include #include #include diff --git a/reactos/lib/crt/stdio/allocfil.c b/reactos/lib/crt/stdio/allocfil.c index a706e355dc2..5e73f455d91 100644 --- a/reactos/lib/crt/stdio/allocfil.c +++ b/reactos/lib/crt/stdio/allocfil.c @@ -1,4 +1,5 @@ /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ +#include "precomp.h" #include #include #include diff --git a/reactos/lib/crt/stdio/clearerr.c b/reactos/lib/crt/stdio/clearerr.c index 48aaeeae78d..a6c365ab156 100644 --- a/reactos/lib/crt/stdio/clearerr.c +++ b/reactos/lib/crt/stdio/clearerr.c @@ -1,4 +1,5 @@ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ +#include "precomp.h" #include #include #include diff --git a/reactos/lib/crt/stdio/fclose.c b/reactos/lib/crt/stdio/fclose.c index cee23f5c010..f22d668079c 100644 --- a/reactos/lib/crt/stdio/fclose.c +++ b/reactos/lib/crt/stdio/fclose.c @@ -1,5 +1,5 @@ /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ - +#include "precomp.h" #include #include #include diff --git a/reactos/lib/crt/stdio/fdopen.c b/reactos/lib/crt/stdio/fdopen.c index 79a70f9ff27..87e5a6a992a 100644 --- a/reactos/lib/crt/stdio/fdopen.c +++ b/reactos/lib/crt/stdio/fdopen.c @@ -1,14 +1,9 @@ - +#include "precomp.h" #include #include #include - - - - - /* * @implemented */ diff --git a/reactos/lib/crt/stdio/feof.c b/reactos/lib/crt/stdio/feof.c index 60aa3b5cb26..31aa73276ab 100644 --- a/reactos/lib/crt/stdio/feof.c +++ b/reactos/lib/crt/stdio/feof.c @@ -1,4 +1,5 @@ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ +#include "precomp.h" #include #include #include diff --git a/reactos/lib/crt/stdio/ferror.c b/reactos/lib/crt/stdio/ferror.c index b1aeb084d2b..4c6100a6fdd 100644 --- a/reactos/lib/crt/stdio/ferror.c +++ b/reactos/lib/crt/stdio/ferror.c @@ -1,4 +1,5 @@ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ +#include "precomp.h" #include #include diff --git a/reactos/lib/crt/stdio/fflush.c b/reactos/lib/crt/stdio/fflush.c index e2b0b60036b..45433374794 100644 --- a/reactos/lib/crt/stdio/fflush.c +++ b/reactos/lib/crt/stdio/fflush.c @@ -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 #include #include diff --git a/reactos/lib/crt/stdio/fgetc.c b/reactos/lib/crt/stdio/fgetc.c index 7d02b2add8f..2e3f4b03bcf 100644 --- a/reactos/lib/crt/stdio/fgetc.c +++ b/reactos/lib/crt/stdio/fgetc.c @@ -9,6 +9,7 @@ 25/02/99: Added fgetwc */ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ +#include "precomp.h" #include #include diff --git a/reactos/lib/crt/stdio/fgets.c b/reactos/lib/crt/stdio/fgets.c index 8b721eb9c47..dac7aa4fff6 100644 --- a/reactos/lib/crt/stdio/fgets.c +++ b/reactos/lib/crt/stdio/fgets.c @@ -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 #include diff --git a/reactos/lib/crt/stdio/fgetws.c b/reactos/lib/crt/stdio/fgetws.c index fece814b605..a124ab41981 100644 --- a/reactos/lib/crt/stdio/fgetws.c +++ b/reactos/lib/crt/stdio/fgetws.c @@ -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 #include diff --git a/reactos/lib/crt/stdio/filbuf.c b/reactos/lib/crt/stdio/filbuf.c index 5fad9d5b8bb..902914dac4d 100644 --- a/reactos/lib/crt/stdio/filbuf.c +++ b/reactos/lib/crt/stdio/filbuf.c @@ -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 #include #include diff --git a/reactos/lib/crt/stdio/flsbuf.c b/reactos/lib/crt/stdio/flsbuf.c index 9564a9fed2b..086760c83ae 100644 --- a/reactos/lib/crt/stdio/flsbuf.c +++ b/reactos/lib/crt/stdio/flsbuf.c @@ -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 #include #include diff --git a/reactos/lib/crt/stdio/fprintf.c b/reactos/lib/crt/stdio/fprintf.c index d7bb2786c53..e2cd1271702 100644 --- a/reactos/lib/crt/stdio/fprintf.c +++ b/reactos/lib/crt/stdio/fprintf.c @@ -1,4 +1,6 @@ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ +#include "precomp.h" + #include #include #include diff --git a/reactos/lib/crt/stdio/fputc.c b/reactos/lib/crt/stdio/fputc.c index 55dde146538..44953c8a991 100644 --- a/reactos/lib/crt/stdio/fputc.c +++ b/reactos/lib/crt/stdio/fputc.c @@ -1,4 +1,6 @@ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ +#include "precomp.h" + #include #include #include diff --git a/reactos/lib/crt/stdio/fread.c b/reactos/lib/crt/stdio/fread.c index 3d771f54e70..3e36731aea1 100644 --- a/reactos/lib/crt/stdio/fread.c +++ b/reactos/lib/crt/stdio/fread.c @@ -1,3 +1,5 @@ +#include "precomp.h" + #include #include #include diff --git a/reactos/lib/crt/stdio/fseek.c b/reactos/lib/crt/stdio/fseek.c index 90511e41f2a..d3932aa2034 100644 --- a/reactos/lib/crt/stdio/fseek.c +++ b/reactos/lib/crt/stdio/fseek.c @@ -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 #include #include diff --git a/reactos/lib/crt/stdio/fsetpos.c b/reactos/lib/crt/stdio/fsetpos.c index 0c7fe1daf2b..ad7462fca93 100644 --- a/reactos/lib/crt/stdio/fsetpos.c +++ b/reactos/lib/crt/stdio/fsetpos.c @@ -1,4 +1,6 @@ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ +#include "precomp.h" + #include #include #include diff --git a/reactos/lib/crt/stdio/ftell.c b/reactos/lib/crt/stdio/ftell.c index c93bc1c7bf9..510473986d1 100644 --- a/reactos/lib/crt/stdio/ftell.c +++ b/reactos/lib/crt/stdio/ftell.c @@ -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 #include #include diff --git a/reactos/lib/crt/stdio/fwalk.c b/reactos/lib/crt/stdio/fwalk.c index 60d6eabe437..2ec5007d51d 100644 --- a/reactos/lib/crt/stdio/fwalk.c +++ b/reactos/lib/crt/stdio/fwalk.c @@ -1,4 +1,6 @@ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ +#include "precomp.h" + #include #include diff --git a/reactos/lib/crt/stdio/fwrite.c b/reactos/lib/crt/stdio/fwrite.c index 32576af4f7a..5e9a56d1a54 100644 --- a/reactos/lib/crt/stdio/fwrite.c +++ b/reactos/lib/crt/stdio/fwrite.c @@ -1,3 +1,4 @@ +#include "precomp.h" #include #include diff --git a/reactos/lib/crt/stdio/getchar.c b/reactos/lib/crt/stdio/getchar.c index e20e4391233..fe667f96564 100644 --- a/reactos/lib/crt/stdio/getchar.c +++ b/reactos/lib/crt/stdio/getchar.c @@ -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 #include diff --git a/reactos/lib/crt/stdio/putchar.c b/reactos/lib/crt/stdio/putchar.c index be4b5161bbd..dad791d3890 100644 --- a/reactos/lib/crt/stdio/putchar.c +++ b/reactos/lib/crt/stdio/putchar.c @@ -8,6 +8,8 @@ * UPDATE HISTORY: * 28/12/98: Created */ +#include "precomp.h" + #include #include #include diff --git a/reactos/lib/crt/stdio/putwchar.c b/reactos/lib/crt/stdio/putwchar.c index e6f31b8add2..119db6ac5ff 100644 --- a/reactos/lib/crt/stdio/putwchar.c +++ b/reactos/lib/crt/stdio/putwchar.c @@ -1,3 +1,5 @@ +#include "precomp.h" + #define UNICODE #define _UNICODE diff --git a/reactos/lib/crt/stdio/rewind.c b/reactos/lib/crt/stdio/rewind.c index 7e5acce69b4..a9479fdc16a 100644 --- a/reactos/lib/crt/stdio/rewind.c +++ b/reactos/lib/crt/stdio/rewind.c @@ -1,4 +1,5 @@ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ +#include "precomp.h" #include #include diff --git a/reactos/lib/crt/stdio/rmtmp.c b/reactos/lib/crt/stdio/rmtmp.c index 806cd001a1b..b7520399320 100644 --- a/reactos/lib/crt/stdio/rmtmp.c +++ b/reactos/lib/crt/stdio/rmtmp.c @@ -8,6 +8,7 @@ * Created 19/01/99 * NOTE Not tested. */ +#include "precomp.h" #include #include diff --git a/reactos/lib/crt/stdio/setbuf.c b/reactos/lib/crt/stdio/setbuf.c index ea84e5e805d..eda1952973d 100644 --- a/reactos/lib/crt/stdio/setbuf.c +++ b/reactos/lib/crt/stdio/setbuf.c @@ -1,4 +1,6 @@ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ +#include "precomp.h" + #include #include #include diff --git a/reactos/lib/crt/stdio/setvbuf.c b/reactos/lib/crt/stdio/setvbuf.c index 8899cf93063..0ae07ab1421 100644 --- a/reactos/lib/crt/stdio/setvbuf.c +++ b/reactos/lib/crt/stdio/setvbuf.c @@ -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 #include #include diff --git a/reactos/lib/crt/stdio/sprintf.c b/reactos/lib/crt/stdio/sprintf.c index 2913608cbda..627a168ad55 100644 --- a/reactos/lib/crt/stdio/sprintf.c +++ b/reactos/lib/crt/stdio/sprintf.c @@ -18,6 +18,8 @@ License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include "precomp.h" + #include #include #include diff --git a/reactos/lib/crt/stdio/stdhnd.c b/reactos/lib/crt/stdio/stdhnd.c index 51501400670..43287039712 100644 --- a/reactos/lib/crt/stdio/stdhnd.c +++ b/reactos/lib/crt/stdio/stdhnd.c @@ -1,4 +1,6 @@ /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ +#include "precomp.h" + #include #include diff --git a/reactos/lib/crt/stdio/tmpfile.c b/reactos/lib/crt/stdio/tmpfile.c index dc92d175cbd..19176e02bef 100644 --- a/reactos/lib/crt/stdio/tmpfile.c +++ b/reactos/lib/crt/stdio/tmpfile.c @@ -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 #include diff --git a/reactos/lib/crt/stdio/ungetc.c b/reactos/lib/crt/stdio/ungetc.c index da508a76c26..4ecb52774f3 100644 --- a/reactos/lib/crt/stdio/ungetc.c +++ b/reactos/lib/crt/stdio/ungetc.c @@ -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 #include #include diff --git a/reactos/lib/crt/stdio/vfprintf.c b/reactos/lib/crt/stdio/vfprintf.c index 8e0ebdaea7c..11d0f634fca 100644 --- a/reactos/lib/crt/stdio/vfprintf.c +++ b/reactos/lib/crt/stdio/vfprintf.c @@ -1,4 +1,6 @@ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ +#include "precomp.h" + #include #include #include diff --git a/reactos/lib/crt/stdio/vsprintf.c b/reactos/lib/crt/stdio/vsprintf.c index 2518968f132..2b462927815 100644 --- a/reactos/lib/crt/stdio/vsprintf.c +++ b/reactos/lib/crt/stdio/vsprintf.c @@ -1,4 +1,6 @@ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ +#include "precomp.h" + #include #include #include diff --git a/reactos/lib/crt/stdlib/errno.c b/reactos/lib/crt/stdlib/errno.c index b2d12d37752..599ff0d1749 100644 --- a/reactos/lib/crt/stdlib/errno.c +++ b/reactos/lib/crt/stdlib/errno.c @@ -1,7 +1,7 @@ /* $Id$ * */ - +#include "precomp.h" #include #include #include diff --git a/reactos/lib/crt/stdlib/rand.c b/reactos/lib/crt/stdlib/rand.c index eb7e38b8bf1..4995cefbba6 100644 --- a/reactos/lib/crt/stdlib/rand.c +++ b/reactos/lib/crt/stdlib/rand.c @@ -1,4 +1,5 @@ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ +#include "precomp.h" #include #include diff --git a/reactos/lib/crt/stdlib/strtoul.c b/reactos/lib/crt/stdlib/strtoul.c index 11baa3a85d6..d0c02a9b215 100644 --- a/reactos/lib/crt/stdlib/strtoul.c +++ b/reactos/lib/crt/stdlib/strtoul.c @@ -1,4 +1,6 @@ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ +#include "precomp.h" + #include #include #include diff --git a/reactos/lib/crt/stdlib/strtoull.c b/reactos/lib/crt/stdlib/strtoull.c index ca53c67a5f5..eb51909f0d6 100644 --- a/reactos/lib/crt/stdlib/strtoull.c +++ b/reactos/lib/crt/stdlib/strtoull.c @@ -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 #include #include #include -#include #include /* diff --git a/reactos/lib/crt/stdlib/wcstombs.c b/reactos/lib/crt/stdlib/wcstombs.c index 3d99e01f51f..dbd5830fde1 100644 --- a/reactos/lib/crt/stdlib/wcstombs.c +++ b/reactos/lib/crt/stdlib/wcstombs.c @@ -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 #include #include diff --git a/reactos/lib/crt/string/lasttok.c b/reactos/lib/crt/string/lasttok.c index f5f8b61d7e6..f41f57aadf5 100644 --- a/reactos/lib/crt/string/lasttok.c +++ b/reactos/lib/crt/string/lasttok.c @@ -1,3 +1,5 @@ +#include "precomp.h" + #include #include diff --git a/reactos/lib/crt/string/strtok.c b/reactos/lib/crt/string/strtok.c index aca32a62885..6b60646a854 100644 --- a/reactos/lib/crt/string/strtok.c +++ b/reactos/lib/crt/string/strtok.c @@ -1,4 +1,5 @@ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ +#include "precomp.h" #include #include diff --git a/reactos/lib/crt/sys_stat/futime.c b/reactos/lib/crt/sys_stat/futime.c index e6d8306b1b7..6f4fd0ee29e 100644 --- a/reactos/lib/crt/sys_stat/futime.c +++ b/reactos/lib/crt/sys_stat/futime.c @@ -1,3 +1,5 @@ +#include "precomp.h" + #include #include #include diff --git a/reactos/lib/crt/time/clock.c b/reactos/lib/crt/time/clock.c index e55b8e33d21..105ea7ff4fa 100644 --- a/reactos/lib/crt/time/clock.c +++ b/reactos/lib/crt/time/clock.c @@ -12,8 +12,6 @@ #include #include -VOID STDCALL GetSystemTimeAsFileTime(LPFILETIME lpSystemTimeAsFileTime ); - /* * @implemented */ diff --git a/reactos/lib/crt/time/strdate.c b/reactos/lib/crt/time/strdate.c index e421f52dfbf..aaa08aca918 100644 --- a/reactos/lib/crt/time/strdate.c +++ b/reactos/lib/crt/time/strdate.c @@ -7,6 +7,8 @@ * UPDATE HISTORY: * 28/12/98: Created */ +#include "precomp.h" + #include #include #include diff --git a/reactos/lib/crt/time/strtime.c b/reactos/lib/crt/time/strtime.c index 7473aea1b3e..12c7b8eda1c 100644 --- a/reactos/lib/crt/time/strtime.c +++ b/reactos/lib/crt/time/strtime.c @@ -7,6 +7,8 @@ * UPDATE HISTORY: * 28/12/98: Created */ +#include "precomp.h" + #include #include #include diff --git a/reactos/lib/crt/time/wstrdate.c b/reactos/lib/crt/time/wstrdate.c index faca97696a5..24e5f4aec48 100644 --- a/reactos/lib/crt/time/wstrdate.c +++ b/reactos/lib/crt/time/wstrdate.c @@ -7,6 +7,7 @@ * UPDATE HISTORY: * 28/12/98: Created */ +#include "precomp.h" #include #include #include diff --git a/reactos/lib/crt/time/wstrtime.c b/reactos/lib/crt/time/wstrtime.c index 3fa0035f713..a3eecfe99f5 100644 --- a/reactos/lib/crt/time/wstrtime.c +++ b/reactos/lib/crt/time/wstrtime.c @@ -7,6 +7,7 @@ * UPDATE HISTORY: * 28/12/98: Created */ +#include "precomp.h" #include #include #include diff --git a/reactos/lib/crt/wine/cppexcept.c b/reactos/lib/crt/wine/cppexcept.c index 0794d039c49..c6c98ee4f1e 100644 --- a/reactos/lib/crt/wine/cppexcept.c +++ b/reactos/lib/crt/wine/cppexcept.c @@ -50,7 +50,7 @@ static DWORD cxx_frame_handler( PEXCEPTION_RECORD rec, cxx_exception_frame* fram 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 @@ inline static void *call_ebp_func( void *func, void *ebp ) } /* 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 @@ inline static void call_copy_ctor( void *func, void *this, void *src, int has_vb } /* 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 @@ static DWORD catch_function_nested_handler( EXCEPTION_RECORD *rec, EXCEPTION_REG /* 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 ) { diff --git a/reactos/lib/crt/wine/scanf.c b/reactos/lib/crt/wine/scanf.c index 01628112ec9..f41dd6118d6 100644 --- a/reactos/lib/crt/wine/scanf.c +++ b/reactos/lib/crt/wine/scanf.c @@ -33,6 +33,8 @@ #include "winternl.h" #include "msvcrt.h" */ +#include "precomp.h" + #define WIN32_NO_STATUS #include diff --git a/reactos/lib/crt/wstring/wcsdup.c b/reactos/lib/crt/wstring/wcsdup.c index 62a65c28c89..4824252a49e 100644 --- a/reactos/lib/crt/wstring/wcsdup.c +++ b/reactos/lib/crt/wstring/wcsdup.c @@ -1,3 +1,5 @@ +#include "precomp.h" + #include #include #include diff --git a/reactos/lib/crt/wstring/wcstok.c b/reactos/lib/crt/wstring/wcstok.c index e79fe27f861..790d9e369b3 100644 --- a/reactos/lib/crt/wstring/wcstok.c +++ b/reactos/lib/crt/wstring/wcstok.c @@ -1,3 +1,5 @@ +#include "precomp.h" + #include #include diff --git a/reactos/lib/crt/wstring/wlasttok.c b/reactos/lib/crt/wstring/wlasttok.c index 14c333f4e1d..68c93e5d58f 100644 --- a/reactos/lib/crt/wstring/wlasttok.c +++ b/reactos/lib/crt/wstring/wlasttok.c @@ -1,3 +1,5 @@ +#include "precomp.h" + #include #include /*