[CMD]
[reactos.git] / reactos / include / reactos / mingw-w64 / reactos.diff
1 Index: internal.h
2 ===================================================================
3 --- internal.h (Revision 46537)
4 +++ internal.h (Arbeitskopie)
5 @@ -35,6 +35,12 @@
6 #define __IOINFO_TM_UTF8 1
7 #define __IOINFO_TM_UTF16LE 2
8
9 +#ifdef _MSC_VER
10 +#pragma warning(push)
11 +#pragma warning(disable:4214)
12 +#pragma warning(disable:4820)
13 +#endif
14 +
15 typedef struct {
16 intptr_t osfhnd;
17 char osfile;
18 @@ -46,6 +52,10 @@
19 char pipech2[2];
20 } ioinfo;
21
22 +#ifdef _MSC_VER
23 +#pragma warning(pop)
24 +#endif
25 +
26 #define IOINFO_ARRAY_ELTS (1 << 5)
27
28 #define _pioinfo(i) (__pioinfo[(i) >> 5] + ((i) & (IOINFO_ARRAY_ELTS - 1)))
29 Index: oscalls.h
30 ===================================================================
31 --- oscalls.h (Revision 46537)
32 +++ oscalls.h (Arbeitskopie)
33 @@ -30,6 +30,11 @@
34 #endif
35 #endif
36
37 +#ifdef _MSC_VER
38 +#pragma warning(push)
39 +#pragma warning(disable:4214)
40 +#endif
41 +
42 typedef struct _FTIME
43 {
44 unsigned short twosecs : 5;
45 @@ -46,6 +51,10 @@
46 unsigned short year : 7;
47 } FDATE;
48
49 +#ifdef _MSC_VER
50 +#pragma warning(pop)
51 +#endif
52 +
53 typedef FDATE *PFDATE;
54
55 #endif
56 Index: sect_attribs.h
57 ===================================================================
58 --- sect_attribs.h (Revision 46537)
59 +++ sect_attribs.h (Arbeitskopie)
60 @@ -10,7 +10,7 @@
61 #define _ATTRIBUTES shared
62 #endif
63
64 -#if 0
65 +#if defined(_MSC_VER)
66 /* Reference list of existing section for msvcrt. */
67 #pragma section(".CRTMP$XCA",long,_ATTRIBUTES)
68 #pragma section(".CRTMP$XCZ",long,_ATTRIBUTES)
69 @@ -55,6 +55,14 @@
70 #pragma section(".rtc$IZZ",long,read)
71 #pragma section(".rtc$TAA",long,read)
72 #pragma section(".rtc$TZZ",long,read)
73 +#pragma section(".tls",long,read,write)
74 +#pragma section(".tls$ZZZ",long,read,write)
75 #endif
76
77 +#if defined(_MSC_VER)
78 +#define _CRTALLOC(x) __declspec(allocate(x))
79 +#elif defined(__GNUC__)
80 #define _CRTALLOC(x) __attribute__ ((section (x) ))
81 +#else
82 +#error
83 +#endif