Skip to content

Commit 6f6b831

Browse files
committed
[CRT] Introduce corecrt.h
Include this instead of crtdefs.h. This is for compatibility with MS headers.
1 parent 4e3c052 commit 6f6b831

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+65
-52
lines changed

sdk/include/crt/assert.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef __ASSERT_H_
77
#define __ASSERT_H_
88

9-
#include <crtdefs.h>
9+
#include <corecrt.h>
1010

1111
#ifdef NDEBUG
1212

sdk/include/crt/complex.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#ifndef _COMPLEX_H_
2727
#define _COMPLEX_H_
2828

29-
#include <crtdefs.h>
29+
#include <corecrt.h>
3030

3131
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) \
3232
|| !defined __STRICT_ANSI__

sdk/include/crt/conio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef _INC_CONIO
77
#define _INC_CONIO
88

9-
#include <crtdefs.h>
9+
#include <corecrt.h>
1010

1111
#define __need___va_list
1212
#include <stdarg.h>

sdk/include/crt/corecrt.h

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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

sdk/include/crt/crtdbg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* This file is part of the w64 mingw-runtime package.
44
* No warranty is given; refer to the file DISCLAIMER within this package.
55
*/
6-
#include <crtdefs.h>
6+
#include <corecrt.h>
77

88
#ifndef _INC_CRTDBG
99
#define _INC_CRTDBG

sdk/include/crt/crtdefs.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,6 @@
158158
#define _CRTNOALIAS
159159
#endif
160160

161-
#ifndef _CRTRESTRICT
162-
#define _CRTRESTRICT
163-
#endif
164-
165161
#ifndef __CRTDECL
166162
#define __CRTDECL __cdecl
167163
#endif
@@ -437,14 +433,6 @@ typedef struct threadmbcinfostruct *pthreadmbcinfo;
437433

438434
struct __lc_time_data;
439435

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-
448436
#ifdef __cplusplus
449437
}
450438
#endif

sdk/include/crt/ctype.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef _INC_CTYPE
77
#define _INC_CTYPE
88

9-
#include <crtdefs.h>
9+
#include <corecrt.h>
1010

1111
#ifdef __cplusplus
1212
extern "C" {

sdk/include/crt/direct.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef _INC_DIRECT
77
#define _INC_DIRECT
88

9-
#include <crtdefs.h>
9+
#include <corecrt.h>
1010
#include <io.h>
1111

1212
#pragma pack(push,_CRT_PACKING)

sdk/include/crt/dos.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef _INC_DOS
77
#define _INC_DOS
88

9-
#include <crtdefs.h>
9+
#include <corecrt.h>
1010
#include <io.h>
1111

1212
#pragma pack(push,_CRT_PACKING)

sdk/include/crt/dvec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <emmintrin.h>
1515
#include <assert.h>
1616
#include <fvec.h>
17-
#include <crtdefs.h>
17+
#include <corecrt.h>
1818

1919
#pragma pack(push,_CRT_PACKING)
2020

0 commit comments

Comments
 (0)