2007-03-14 20:24:57 +00:00
|
|
|
#ifndef _CRT_PRECOMP_H
|
|
|
|
#define _CRT_PRECOMP_H
|
|
|
|
|
|
|
|
/* We don't want to use the Microsoft CRT inline functions
|
|
|
|
so we hack around them in msvc build */
|
|
|
|
#define _INC_WTIME_INL
|
|
|
|
#define _INC_UTIME_INL
|
|
|
|
#define _INC_TIME_INL
|
|
|
|
|
[CRT]
- Update file.c to recent wine. (now with locking!)
- implement/enable __wcserror, __wcserror_s, _access_s, _ctime32_s, _ctime64_s,
_cwprintf, _fseeki64, _ftelli64, _get_osplatform, _get_output_format,
_get_pgmptr, _get_wpgmptr, _get_terminate, _get_tzname, _get_unexpected,
_gmtime64_s, _i64toa_s, _i64tow_s, _initterm_e, _itoa_s, _itow_s,
_localtime32_s, _localtime64_s, _ltoa_s, _ltow_s, _putwch, _searchenv_s,
_sopen_s, _ui64toa_s, _ui64tow_s, _vcwprintf, _vsprintf_p, _waccess_s,
_wcserror, _wcserror_s, _wfopen_s, _wsopen_s, fopen_s, fprintf_s, fwprintf_s,
printf_s, strerror_s, strncpy_s, strtok_s, vfprintf_s, vfwprintf_s, vprintf_s,
vwprintf_s, wcscat_s, wcsncat_s, wcstok_s, wprintf_s. Most code comes from
wine.
- Fix __set_errno -> _set_errno and export it.
- Remove unneeded files.
[CRT_HEADERS]
- add threadmbcinfo struct.
- update some sec_api headers from mingw64 due to missing or incorrect
functions.
Patch by Samuel Serapion.
Changes to msvcrt spec by me due to winebuild.
CRLF/LF fixes.
svn path=/trunk/; revision=54651
2011-12-14 22:09:24 +00:00
|
|
|
/* needed to expose _s api definitions */
|
|
|
|
#define MINGW_HAS_SECURE_API 1
|
|
|
|
|
2007-03-14 20:24:57 +00:00
|
|
|
/* Headers to be compiled */
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
[CRT]
- Update file.c to recent wine. (now with locking!)
- implement/enable __wcserror, __wcserror_s, _access_s, _ctime32_s, _ctime64_s,
_cwprintf, _fseeki64, _ftelli64, _get_osplatform, _get_output_format,
_get_pgmptr, _get_wpgmptr, _get_terminate, _get_tzname, _get_unexpected,
_gmtime64_s, _i64toa_s, _i64tow_s, _initterm_e, _itoa_s, _itow_s,
_localtime32_s, _localtime64_s, _ltoa_s, _ltow_s, _putwch, _searchenv_s,
_sopen_s, _ui64toa_s, _ui64tow_s, _vcwprintf, _vsprintf_p, _waccess_s,
_wcserror, _wcserror_s, _wfopen_s, _wsopen_s, fopen_s, fprintf_s, fwprintf_s,
printf_s, strerror_s, strncpy_s, strtok_s, vfprintf_s, vfwprintf_s, vprintf_s,
vwprintf_s, wcscat_s, wcsncat_s, wcstok_s, wprintf_s. Most code comes from
wine.
- Fix __set_errno -> _set_errno and export it.
- Remove unneeded files.
[CRT_HEADERS]
- add threadmbcinfo struct.
- update some sec_api headers from mingw64 due to missing or incorrect
functions.
Patch by Samuel Serapion.
Changes to msvcrt spec by me due to winebuild.
CRLF/LF fixes.
svn path=/trunk/; revision=54651
2011-12-14 22:09:24 +00:00
|
|
|
#include <stdarg.h>
|
2007-03-14 20:24:57 +00:00
|
|
|
#include <string.h>
|
|
|
|
#include <conio.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <fcntl.h>
|
|
|
|
#include <float.h>
|
|
|
|
#include <malloc.h>
|
|
|
|
#include <math.h>
|
|
|
|
#include <limits.h>
|
2008-12-21 03:15:46 +00:00
|
|
|
#include <io.h>
|
2007-03-14 20:24:57 +00:00
|
|
|
|
|
|
|
#include <sys/stat.h>
|
2008-06-11 08:54:46 +00:00
|
|
|
#include <sys/locking.h>
|
2007-03-14 20:24:57 +00:00
|
|
|
#include <share.h>
|
|
|
|
|
|
|
|
/* PSDK/NDK Headers */
|
|
|
|
#define WIN32_NO_STATUS
|
2013-01-24 23:00:42 +00:00
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <wincon.h>
|
|
|
|
#include <winuser.h>
|
2011-08-17 14:04:33 +00:00
|
|
|
#include <ndk/rtlfuncs.h>
|
2007-03-14 20:24:57 +00:00
|
|
|
|
2015-09-15 10:35:49 +00:00
|
|
|
// Our headers are pretty messed up
|
|
|
|
#undef CDECL
|
|
|
|
#if defined(_M_IX86)
|
|
|
|
#define CDECL __cdecl
|
|
|
|
#else
|
|
|
|
#define CDECL
|
|
|
|
#endif
|
|
|
|
|
2007-03-14 20:24:57 +00:00
|
|
|
#if !defined(_MSC_VER)
|
|
|
|
#include <stdint.h>
|
|
|
|
#endif
|
|
|
|
|
[CRT]
- Update file.c to recent wine. (now with locking!)
- implement/enable __wcserror, __wcserror_s, _access_s, _ctime32_s, _ctime64_s,
_cwprintf, _fseeki64, _ftelli64, _get_osplatform, _get_output_format,
_get_pgmptr, _get_wpgmptr, _get_terminate, _get_tzname, _get_unexpected,
_gmtime64_s, _i64toa_s, _i64tow_s, _initterm_e, _itoa_s, _itow_s,
_localtime32_s, _localtime64_s, _ltoa_s, _ltow_s, _putwch, _searchenv_s,
_sopen_s, _ui64toa_s, _ui64tow_s, _vcwprintf, _vsprintf_p, _waccess_s,
_wcserror, _wcserror_s, _wfopen_s, _wsopen_s, fopen_s, fprintf_s, fwprintf_s,
printf_s, strerror_s, strncpy_s, strtok_s, vfprintf_s, vfwprintf_s, vprintf_s,
vwprintf_s, wcscat_s, wcsncat_s, wcstok_s, wprintf_s. Most code comes from
wine.
- Fix __set_errno -> _set_errno and export it.
- Remove unneeded files.
[CRT_HEADERS]
- add threadmbcinfo struct.
- update some sec_api headers from mingw64 due to missing or incorrect
functions.
Patch by Samuel Serapion.
Changes to msvcrt spec by me due to winebuild.
CRLF/LF fixes.
svn path=/trunk/; revision=54651
2011-12-14 22:09:24 +00:00
|
|
|
/* kernelmode libcnt should not include Wine stuff */
|
|
|
|
#ifndef _LIBCNT_
|
2008-06-06 17:49:24 +00:00
|
|
|
#include "wine/unicode.h"
|
2010-06-13 01:24:42 +00:00
|
|
|
#include "wine/config.h"
|
2009-01-05 14:07:04 +00:00
|
|
|
#define WINE_NO_TRACE_MSGS
|
2008-06-06 17:49:24 +00:00
|
|
|
#include "wine/debug.h"
|
2008-12-22 20:32:47 +00:00
|
|
|
#ifndef __WINE_DEBUG_CHANNEL__
|
2008-06-06 17:49:24 +00:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
|
2008-12-22 20:32:47 +00:00
|
|
|
#endif
|
2008-06-06 17:49:24 +00:00
|
|
|
#else
|
2009-01-10 22:44:32 +00:00
|
|
|
#define NDEBUG
|
2008-06-06 17:49:24 +00:00
|
|
|
#include <debug.h>
|
|
|
|
#define TRACE DPRINT
|
|
|
|
#define WARN DPRINT1
|
|
|
|
#endif
|
|
|
|
|
2007-03-14 20:24:57 +00:00
|
|
|
/* CRT Internal data */
|
|
|
|
#include <internal/atexit.h>
|
|
|
|
#include <internal/console.h>
|
|
|
|
#include <internal/ieee.h>
|
2012-12-09 03:17:14 +00:00
|
|
|
#include <internal/locale.h>
|
2008-06-06 17:49:24 +00:00
|
|
|
#include <internal/math.h>
|
|
|
|
#include <internal/mbstring.h>
|
2013-01-08 22:14:10 +00:00
|
|
|
#include <internal/misc.h>
|
2008-06-06 17:49:24 +00:00
|
|
|
#include <internal/mtdll.h>
|
2017-07-17 16:11:18 +00:00
|
|
|
#include <internal/popen.h>
|
2008-06-06 17:49:24 +00:00
|
|
|
#include <internal/rterror.h>
|
2010-06-13 01:24:42 +00:00
|
|
|
#include <internal/safecrt.h>
|
2009-08-06 11:37:09 +00:00
|
|
|
#include <internal/time.h>
|
2011-12-02 21:18:42 +00:00
|
|
|
#if !defined(_LIBCNT_) && !defined(_MSVCRTEX_)
|
2007-03-14 20:24:57 +00:00
|
|
|
#include <internal/tls.h>
|
2011-12-02 21:18:42 +00:00
|
|
|
#endif
|
2007-03-14 20:24:57 +00:00
|
|
|
|
|
|
|
#endif /* _CRT_PRECOMP_H */
|