Reactos

[CRT] Introduce corecrt.h

Include this instead of crtdefs.h.
This is for compatibility with MS headers.

+65 -52
+1 -1
sdk/include/crt/assert.h
··· 6 6 #ifndef __ASSERT_H_ 7 7 #define __ASSERT_H_ 8 8 9 - #include <crtdefs.h> 9 + #include <corecrt.h> 10 10 11 11 #ifdef NDEBUG 12 12
+1 -1
sdk/include/crt/complex.h
··· 26 26 #ifndef _COMPLEX_H_ 27 27 #define _COMPLEX_H_ 28 28 29 - #include <crtdefs.h> 29 + #include <corecrt.h> 30 30 31 31 #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) \ 32 32 || !defined __STRICT_ANSI__
+1 -1
sdk/include/crt/conio.h
··· 6 6 #ifndef _INC_CONIO 7 7 #define _INC_CONIO 8 8 9 - #include <crtdefs.h> 9 + #include <corecrt.h> 10 10 11 11 #define __need___va_list 12 12 #include <stdarg.h>
+25
sdk/include/crt/corecrt.h
··· 1 + 2 + #pragma once 3 + 4 + #include <crtdefs.h> 5 + 6 + #ifdef __cplusplus 7 + extern "C" { 8 + #endif 9 + 10 + #ifndef _CRTRESTRICT 11 + #define _CRTRESTRICT 12 + #endif 13 + 14 + #ifndef DEFINED_localeinfo_struct 15 + typedef struct localeinfo_struct 16 + { 17 + pthreadlocinfo locinfo; 18 + pthreadmbcinfo mbcinfo; 19 + } _locale_tstruct, *_locale_t; 20 + #define DEFINED_localeinfo_struct 1 21 + #endif 22 + 23 + #ifdef __cplusplus 24 + } // extern "C" 25 + #endif
+1 -1
sdk/include/crt/crtdbg.h
··· 3 3 * This file is part of the w64 mingw-runtime package. 4 4 * No warranty is given; refer to the file DISCLAIMER within this package. 5 5 */ 6 - #include <crtdefs.h> 6 + #include <corecrt.h> 7 7 8 8 #ifndef _INC_CRTDBG 9 9 #define _INC_CRTDBG
-12
sdk/include/crt/crtdefs.h
··· 158 158 #define _CRTNOALIAS 159 159 #endif 160 160 161 - #ifndef _CRTRESTRICT 162 - #define _CRTRESTRICT 163 - #endif 164 - 165 161 #ifndef __CRTDECL 166 162 #define __CRTDECL __cdecl 167 163 #endif ··· 436 432 #endif 437 433 438 434 struct __lc_time_data; 439 - 440 - #ifndef DEFINED_localeinfo_struct 441 - typedef struct localeinfo_struct { 442 - pthreadlocinfo locinfo; 443 - pthreadmbcinfo mbcinfo; 444 - }_locale_tstruct,*_locale_t; 445 - #define DEFINED_localeinfo_struct 1 446 - #endif 447 435 448 436 #ifdef __cplusplus 449 437 }
+1 -1
sdk/include/crt/ctype.h
··· 6 6 #ifndef _INC_CTYPE 7 7 #define _INC_CTYPE 8 8 9 - #include <crtdefs.h> 9 + #include <corecrt.h> 10 10 11 11 #ifdef __cplusplus 12 12 extern "C" {
+1 -1
sdk/include/crt/direct.h
··· 6 6 #ifndef _INC_DIRECT 7 7 #define _INC_DIRECT 8 8 9 - #include <crtdefs.h> 9 + #include <corecrt.h> 10 10 #include <io.h> 11 11 12 12 #pragma pack(push,_CRT_PACKING)
+1 -1
sdk/include/crt/dos.h
··· 6 6 #ifndef _INC_DOS 7 7 #define _INC_DOS 8 8 9 - #include <crtdefs.h> 9 + #include <corecrt.h> 10 10 #include <io.h> 11 11 12 12 #pragma pack(push,_CRT_PACKING)
+1 -1
sdk/include/crt/dvec.h
··· 14 14 #include <emmintrin.h> 15 15 #include <assert.h> 16 16 #include <fvec.h> 17 - #include <crtdefs.h> 17 + #include <corecrt.h> 18 18 19 19 #pragma pack(push,_CRT_PACKING) 20 20
+1 -1
sdk/include/crt/eh.h
··· 3 3 * This file is part of the w64 mingw-runtime package. 4 4 * No warranty is given; refer to the file DISCLAIMER within this package. 5 5 */ 6 - #include <crtdefs.h> 6 + #include <corecrt.h> 7 7 8 8 #ifndef _EH_H_ 9 9 #define _EH_H_
+1 -1
sdk/include/crt/errno.h
··· 6 6 #ifndef _INC_ERRNO 7 7 #define _INC_ERRNO 8 8 9 - #include <crtdefs.h> 9 + #include <corecrt.h> 10 10 11 11 #ifdef __cplusplus 12 12 extern "C" {
+1 -1
sdk/include/crt/fcntl.h
··· 3 3 * This file is part of the w64 mingw-runtime package. 4 4 * No warranty is given; refer to the file DISCLAIMER within this package. 5 5 */ 6 - #include <crtdefs.h> 6 + #include <corecrt.h> 7 7 8 8 #ifndef _INC_FCNTL 9 9 #define _INC_FCNTL
+1 -1
sdk/include/crt/float.h
··· 27 27 #error 28 28 #endif 29 29 30 - #include <crtdefs.h> 30 + #include <corecrt.h> 31 31 32 32 /* 33 33 * Functions and definitions for controlling the FPU.
+1 -1
sdk/include/crt/fpieee.h
··· 6 6 #ifndef _INC_FPIEEE 7 7 #define _INC_FPIEEE 8 8 9 - #include <crtdefs.h> 9 + #include <corecrt.h> 10 10 11 11 #pragma pack(push,_CRT_PACKING) 12 12
+1 -1
sdk/include/crt/fvec.h
··· 14 14 #include <xmmintrin.h> 15 15 #include <assert.h> 16 16 #include <ivec.h> 17 - #include <crtdefs.h> 17 + #include <corecrt.h> 18 18 19 19 #if defined(_ENABLE_VEC_DEBUG) 20 20 #include <iostream>
+1 -1
sdk/include/crt/inttypes.h
··· 8 8 #ifndef _INTTYPES_H_ 9 9 #define _INTTYPES_H_ 10 10 11 - #include <crtdefs.h> 11 + #include <corecrt.h> 12 12 #include <stdint.h> 13 13 #define __need_wchar_t 14 14 #include <stddef.h>
+1 -1
sdk/include/crt/io.h
··· 7 7 #ifndef _IO_H_ 8 8 #define _IO_H_ 9 9 10 - #include <crtdefs.h> 10 + #include <corecrt.h> 11 11 #include <string.h> 12 12 13 13 #pragma pack(push,_CRT_PACKING)
+1 -1
sdk/include/crt/ivec.h
··· 14 14 #include <intrin.h> 15 15 #include <assert.h> 16 16 #include <dvec.h> 17 - #include <crtdefs.h> 17 + #include <corecrt.h> 18 18 19 19 #pragma pack(push,_CRT_PACKING) 20 20
+1 -1
sdk/include/crt/libgen.h
··· 14 14 #define _LIBGEN_H_ 15 15 16 16 /* All the headers include this file. */ 17 - #include <crtdefs.h> 17 + #include <corecrt.h> 18 18 19 19 #ifdef __cplusplus 20 20 extern "C" {
+1 -1
sdk/include/crt/locale.h
··· 6 6 #ifndef _INC_LOCALE 7 7 #define _INC_LOCALE 8 8 9 - #include <crtdefs.h> 9 + #include <corecrt.h> 10 10 11 11 #pragma pack(push,_CRT_PACKING) 12 12
+1 -1
sdk/include/crt/malloc.h
··· 6 6 #ifndef _INC_MALLOC 7 7 #define _INC_MALLOC 8 8 9 - #include <crtdefs.h> 9 + #include <corecrt.h> 10 10 11 11 #pragma pack(push,_CRT_PACKING) 12 12
+1 -1
sdk/include/crt/math.h
··· 4 4 #ifndef _INC_MATH 5 5 #define _INC_MATH 6 6 7 - #include "crtdefs.h" 7 + #include <corecrt.h> 8 8 9 9 #pragma pack(push,_CRT_PACKING) 10 10
+1 -1
sdk/include/crt/mbctype.h
··· 6 6 #ifndef _INC_MBCTYPE 7 7 #define _INC_MBCTYPE 8 8 9 - #include <crtdefs.h> 9 + #include <corecrt.h> 10 10 #include <ctype.h> 11 11 12 12 #ifdef __cplusplus
+1 -1
sdk/include/crt/mbstring.h
··· 7 7 #ifndef _INC_MBSTRING 8 8 #define _INC_MBSTRING 9 9 10 - #include <crtdefs.h> 10 + #include <corecrt.h> 11 11 12 12 #pragma pack(push,_CRT_PACKING) 13 13
+1 -1
sdk/include/crt/memory.h
··· 6 6 #ifndef _INC_MEMORY 7 7 #define _INC_MEMORY 8 8 9 - #include <crtdefs.h> 9 + #include <corecrt.h> 10 10 11 11 #ifdef __cplusplus 12 12 extern "C" {
+1 -1
sdk/include/crt/process.h
··· 6 6 #ifndef _INC_PROCESS 7 7 #define _INC_PROCESS 8 8 9 - #include <crtdefs.h> 9 + #include <corecrt.h> 10 10 11 11 /* Includes a definition of _pid_t and pid_t */ 12 12 #include <sys/types.h>
+1 -1
sdk/include/crt/search.h
··· 7 7 #ifndef _INC_SEARCH 8 8 #define _INC_SEARCH 9 9 10 - #include <crtdefs.h> 10 + #include <corecrt.h> 11 11 #include <stddef.h> 12 12 13 13 #ifdef __cplusplus
+1 -1
sdk/include/crt/signal.h
··· 6 6 #ifndef _INC_SIGNAL 7 7 #define _INC_SIGNAL 8 8 9 - #include <crtdefs.h> 9 + #include <corecrt.h> 10 10 11 11 #ifdef __cplusplus 12 12 extern "C" {
+1 -1
sdk/include/crt/stddef.h
··· 4 4 * No warranty is given; refer to the file DISCLAIMER within this package. 5 5 */ 6 6 7 - #include <crtdefs.h> 7 + #include <corecrt.h> 8 8 9 9 #ifndef _INC_STDDEF 10 10 #define _INC_STDDEF
+1 -1
sdk/include/crt/stdexcpt.h
··· 3 3 * This file is part of the w64 mingw-runtime package. 4 4 * No warranty is given; refer to the file DISCLAIMER within this package. 5 5 */ 6 - #include <crtdefs.h> 6 + #include <corecrt.h> 7 7 8 8 #ifndef _INC_STDEXCPT 9 9 #define _INC_STDEXCPT
+1 -1
sdk/include/crt/stdio.h
··· 6 6 #ifndef _INC_STDIO 7 7 #define _INC_STDIO 8 8 9 - #include <crtdefs.h> 9 + #include <corecrt.h> 10 10 11 11 #define __need___va_list 12 12 #include <stdarg.h>
+1 -1
sdk/include/crt/stdlib.h
··· 6 6 #ifndef _INC_STDLIB 7 7 #define _INC_STDLIB 8 8 9 - #include <crtdefs.h> 9 + #include <corecrt.h> 10 10 #include <limits.h> 11 11 12 12 #pragma pack(push,_CRT_PACKING)
+1 -1
sdk/include/crt/string.h
··· 6 6 #ifndef _INC_STRING 7 7 #define _INC_STRING 8 8 9 - #include <crtdefs.h> 9 + #include <corecrt.h> 10 10 11 11 #ifdef __cplusplus 12 12 extern "C" {
+1 -1
sdk/include/crt/tchar.h
··· 3 3 * This file is part of the w64 mingw-runtime package. 4 4 * No warranty is given; refer to the file DISCLAIMER within this package. 5 5 */ 6 - #include <crtdefs.h> 6 + #include <corecrt.h> 7 7 8 8 #ifndef _INC_TCHAR 9 9 #define _INC_TCHAR
+1 -1
sdk/include/crt/time.h
··· 7 7 #ifndef _TIME_H_ 8 8 #define _TIME_H_ 9 9 10 - #include <crtdefs.h> 10 + #include <corecrt.h> 11 11 12 12 #ifndef _WIN32 13 13 #error Only Win32 target is supported!
+1 -1
sdk/include/crt/typeinfo.h
··· 3 3 * This file is part of the w64 mingw-runtime package. 4 4 * No warranty is given; refer to the file DISCLAIMER within this package. 5 5 */ 6 - #include <crtdefs.h> 6 + #include <corecrt.h> 7 7 8 8 #ifndef _INC_TYPEINFO 9 9 #define _INC_TYPEINFO
+1 -1
sdk/include/crt/wchar.h
··· 6 6 #ifndef _INC_WCHAR 7 7 #define _INC_WCHAR 8 8 9 - #include <crtdefs.h> 9 + #include <corecrt.h> 10 10 11 11 #define __need___va_list 12 12 #include <stdarg.h>
+1 -1
sdk/include/crt/wctype.h
··· 10 10 #error Only Win32 target is supported! 11 11 #endif 12 12 13 - #include <crtdefs.h> 13 + #include <corecrt.h> 14 14 15 15 #pragma pack(push,_CRT_PACKING) 16 16
+1 -3
sdk/include/crt/yvals.h
··· 7 7 #define _YVALS 8 8 9 9 #include <_mingw.h> 10 - /* TODO, don't include crtdef.h. */ 11 - #include <crtdefs.h> 12 10 13 - #pragma pack(push,_CRT_PACKING) 11 + #pragma pack(push,8) 14 12 15 13 #define _CPPLIB_VER 405 16 14 #define __PURE_APPDOMAIN_GLOBAL
+2
sdk/lib/crt/include/internal/locale.h
··· 1 1 #ifndef __CRT_INTERNAL_LOCALE_H 2 2 #define __CRT_INTERNAL_LOCALE_H 3 3 4 + #include <crtdefs.h> // for LC_ID 5 + 4 6 typedef struct MSVCRT_threadlocaleinfostruct { 5 7 LONG refcount; 6 8 unsigned int lc_codepage;