mirror of
https://github.com/reactos/reactos.git
synced 2025-02-20 15:35:04 +00:00
[CRT] Introduce corecrt.h
Include this instead of crtdefs.h. This is for compatibility with MS headers.
This commit is contained in:
parent
4e3c0529cf
commit
6f6b831722
41 changed files with 65 additions and 52 deletions
|
@ -6,7 +6,7 @@
|
|||
#ifndef __ASSERT_H_
|
||||
#define __ASSERT_H_
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#ifdef NDEBUG
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#ifndef _COMPLEX_H_
|
||||
#define _COMPLEX_H_
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) \
|
||||
|| !defined __STRICT_ANSI__
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#ifndef _INC_CONIO
|
||||
#define _INC_CONIO
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#define __need___va_list
|
||||
#include <stdarg.h>
|
||||
|
|
25
sdk/include/crt/corecrt.h
Normal file
25
sdk/include/crt/corecrt.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <crtdefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef _CRTRESTRICT
|
||||
#define _CRTRESTRICT
|
||||
#endif
|
||||
|
||||
#ifndef DEFINED_localeinfo_struct
|
||||
typedef struct localeinfo_struct
|
||||
{
|
||||
pthreadlocinfo locinfo;
|
||||
pthreadmbcinfo mbcinfo;
|
||||
} _locale_tstruct, *_locale_t;
|
||||
#define DEFINED_localeinfo_struct 1
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the w64 mingw-runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER within this package.
|
||||
*/
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#ifndef _INC_CRTDBG
|
||||
#define _INC_CRTDBG
|
||||
|
|
|
@ -158,10 +158,6 @@
|
|||
#define _CRTNOALIAS
|
||||
#endif
|
||||
|
||||
#ifndef _CRTRESTRICT
|
||||
#define _CRTRESTRICT
|
||||
#endif
|
||||
|
||||
#ifndef __CRTDECL
|
||||
#define __CRTDECL __cdecl
|
||||
#endif
|
||||
|
@ -437,14 +433,6 @@ typedef struct threadmbcinfostruct *pthreadmbcinfo;
|
|||
|
||||
struct __lc_time_data;
|
||||
|
||||
#ifndef DEFINED_localeinfo_struct
|
||||
typedef struct localeinfo_struct {
|
||||
pthreadlocinfo locinfo;
|
||||
pthreadmbcinfo mbcinfo;
|
||||
}_locale_tstruct,*_locale_t;
|
||||
#define DEFINED_localeinfo_struct 1
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#ifndef _INC_CTYPE
|
||||
#define _INC_CTYPE
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#ifndef _INC_DIRECT
|
||||
#define _INC_DIRECT
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
#include <io.h>
|
||||
|
||||
#pragma pack(push,_CRT_PACKING)
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#ifndef _INC_DOS
|
||||
#define _INC_DOS
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
#include <io.h>
|
||||
|
||||
#pragma pack(push,_CRT_PACKING)
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <emmintrin.h>
|
||||
#include <assert.h>
|
||||
#include <fvec.h>
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#pragma pack(push,_CRT_PACKING)
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the w64 mingw-runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER within this package.
|
||||
*/
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#ifndef _EH_H_
|
||||
#define _EH_H_
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#ifndef _INC_ERRNO
|
||||
#define _INC_ERRNO
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the w64 mingw-runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER within this package.
|
||||
*/
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#ifndef _INC_FCNTL
|
||||
#define _INC_FCNTL
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#error
|
||||
#endif
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
/*
|
||||
* Functions and definitions for controlling the FPU.
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#ifndef _INC_FPIEEE
|
||||
#define _INC_FPIEEE
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#pragma pack(push,_CRT_PACKING)
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <xmmintrin.h>
|
||||
#include <assert.h>
|
||||
#include <ivec.h>
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#if defined(_ENABLE_VEC_DEBUG)
|
||||
#include <iostream>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#ifndef _INTTYPES_H_
|
||||
#define _INTTYPES_H_
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
#include <stdint.h>
|
||||
#define __need_wchar_t
|
||||
#include <stddef.h>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#ifndef _IO_H_
|
||||
#define _IO_H_
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
#include <string.h>
|
||||
|
||||
#pragma pack(push,_CRT_PACKING)
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <intrin.h>
|
||||
#include <assert.h>
|
||||
#include <dvec.h>
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#pragma pack(push,_CRT_PACKING)
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#define _LIBGEN_H_
|
||||
|
||||
/* All the headers include this file. */
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#ifndef _INC_LOCALE
|
||||
#define _INC_LOCALE
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#pragma pack(push,_CRT_PACKING)
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#ifndef _INC_MALLOC
|
||||
#define _INC_MALLOC
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#pragma pack(push,_CRT_PACKING)
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#ifndef _INC_MATH
|
||||
#define _INC_MATH
|
||||
|
||||
#include "crtdefs.h"
|
||||
#include <corecrt.h>
|
||||
|
||||
#pragma pack(push,_CRT_PACKING)
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#ifndef _INC_MBCTYPE
|
||||
#define _INC_MBCTYPE
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#ifndef _INC_MBSTRING
|
||||
#define _INC_MBSTRING
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#pragma pack(push,_CRT_PACKING)
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#ifndef _INC_MEMORY
|
||||
#define _INC_MEMORY
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#ifndef _INC_PROCESS
|
||||
#define _INC_PROCESS
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
/* Includes a definition of _pid_t and pid_t */
|
||||
#include <sys/types.h>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#ifndef _INC_SEARCH
|
||||
#define _INC_SEARCH
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#ifndef _INC_SIGNAL
|
||||
#define _INC_SIGNAL
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* No warranty is given; refer to the file DISCLAIMER within this package.
|
||||
*/
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#ifndef _INC_STDDEF
|
||||
#define _INC_STDDEF
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the w64 mingw-runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER within this package.
|
||||
*/
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#ifndef _INC_STDEXCPT
|
||||
#define _INC_STDEXCPT
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#ifndef _INC_STDIO
|
||||
#define _INC_STDIO
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#define __need___va_list
|
||||
#include <stdarg.h>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#ifndef _INC_STDLIB
|
||||
#define _INC_STDLIB
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
#include <limits.h>
|
||||
|
||||
#pragma pack(push,_CRT_PACKING)
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#ifndef _INC_STRING
|
||||
#define _INC_STRING
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the w64 mingw-runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER within this package.
|
||||
*/
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#ifndef _INC_TCHAR
|
||||
#define _INC_TCHAR
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#ifndef _TIME_H_
|
||||
#define _TIME_H_
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#ifndef _WIN32
|
||||
#error Only Win32 target is supported!
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the w64 mingw-runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER within this package.
|
||||
*/
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#ifndef _INC_TYPEINFO
|
||||
#define _INC_TYPEINFO
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#ifndef _INC_WCHAR
|
||||
#define _INC_WCHAR
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#define __need___va_list
|
||||
#include <stdarg.h>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#error Only Win32 target is supported!
|
||||
#endif
|
||||
|
||||
#include <crtdefs.h>
|
||||
#include <corecrt.h>
|
||||
|
||||
#pragma pack(push,_CRT_PACKING)
|
||||
|
||||
|
|
|
@ -7,10 +7,8 @@
|
|||
#define _YVALS
|
||||
|
||||
#include <_mingw.h>
|
||||
/* TODO, don't include crtdef.h. */
|
||||
#include <crtdefs.h>
|
||||
|
||||
#pragma pack(push,_CRT_PACKING)
|
||||
#pragma pack(push,8)
|
||||
|
||||
#define _CPPLIB_VER 405
|
||||
#define __PURE_APPDOMAIN_GLOBAL
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef __CRT_INTERNAL_LOCALE_H
|
||||
#define __CRT_INTERNAL_LOCALE_H
|
||||
|
||||
#include <crtdefs.h> // for LC_ID
|
||||
|
||||
typedef struct MSVCRT_threadlocaleinfostruct {
|
||||
LONG refcount;
|
||||
unsigned int lc_codepage;
|
||||
|
|
Loading…
Reference in a new issue