• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

The MinGW.org Windows System Libraries


コミットメタ情報

リビジョン828d385ccec683a0fcb47da3651dd286f187ccfe (tree)
日時2012-09-01 00:09:46
作者Earnie Boyd <earnie@user...>
コミッターEarnie Boyd

ログメッセージ

More on assuming GCC is greater than or equal to version 3.5.4 and that
GCC is the only compiler to be used for MinGW.org.

* include/winnt.h: Remove unneeded filters based on the assumptions.
(_SYSTEM_POWER_INFORMATION): Introduce filter for _WIN32_WINNT >=
Windows XP.
* include/winperf.h: Remove unneeded filters based on the assumptions.
* include/winreg.h: Ditto.
* include/winresrc.h: Ditto.
* include/winsnmp.h: Ditto.
* include/winsock.h: Ditto.
* include/winsock2.h: Ditto.
* include/winspool.h: Ditto.
* include/winsvc.h: Ditto.
* include/winuser.h: Ditto.
* include/winver.h: Ditto.
* include/ws2spi.h: Ditto.
* include/ws2tcpip.h: Ditto.
* include/wsahelp.h: Ditto.
* include/wsipx.h: Ditto.
* include/wsnetbs.h: Ditto.

変更サマリ

差分

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,27 @@
1+2012-08-31 Earnie Boyd <earnie@users.sourceforge.net>
2+
3+ More on assuming GCC is greater than or equal to version 3.5.4 and that
4+ GCC is the only compiler to be used for MinGW.org.
5+
6+ * include/winnt.h: Remove unneeded filters based on the assumptions.
7+ (_SYSTEM_POWER_INFORMATION): Introduce filter for _WIN32_WINNT >=
8+ Windows XP.
9+ * include/winperf.h: Remove unneeded filters based on the assumptions.
10+ * include/winreg.h: Ditto.
11+ * include/winresrc.h: Ditto.
12+ * include/winsnmp.h: Ditto.
13+ * include/winsock.h: Ditto.
14+ * include/winsock2.h: Ditto.
15+ * include/winspool.h: Ditto.
16+ * include/winsvc.h: Ditto.
17+ * include/winuser.h: Ditto.
18+ * include/winver.h: Ditto.
19+ * include/ws2spi.h: Ditto.
20+ * include/ws2tcpip.h: Ditto.
21+ * include/wsahelp.h: Ditto.
22+ * include/wsipx.h: Ditto.
23+ * include/wsnetbs.h: Ditto.
24+
125 2012-08-28 Earnie Boyd <earnie@users.sourceforge.net>
226
327 We are going to assume that MinGW is using GCC version greater than or
--- a/include/winnt.h
+++ b/include/winnt.h
@@ -1,8 +1,6 @@
11 #ifndef _WINNT_H
22 #define _WINNT_H
3-#if __GNUC__ >= 3
43 #pragma GCC system_header
5-#endif
64
75 /* translate GCC target defines to MS equivalents. Keep this synchronized
86 with windows.h. */
@@ -44,11 +42,7 @@ extern "C" {
4442 #endif
4543
4644 #ifndef DECLSPEC_ALIGN
47-#ifdef __GNUC__
4845 #define DECLSPEC_ALIGN(x) __attribute__((aligned(x)))
49-#else
50-#define DECLSPEC_ALIGN(x)
51-#endif
5246 #endif
5347
5448 #ifndef DECLSPEC_SELECTANY
@@ -60,11 +54,7 @@ extern "C" {
6054 #endif
6155
6256 #ifndef FORCEINLINE
63-#if (__GNUC__ >= 3)
6457 #define FORCEINLINE __inline __attribute__((always_inline))
65-#else
66-#define FORCEINLINE __inline
67-#endif
6858 #endif
6959
7060 #ifndef C_ASSERT
@@ -155,31 +145,26 @@ typedef HANDLE *PHANDLE,*LPHANDLE;
155145 typedef DWORD LCID;
156146 typedef PDWORD PLCID;
157147 typedef WORD LANGID;
158-#ifdef __GNUC__
148+
159149 #define _HAVE_INT64
160150 #define _INTEGRAL_MAX_BITS 64
161151 #undef __int64
162152 #define __int64 long long
163-#elif defined(__WATCOMC__) && (defined(_INTEGRAL_MAX_BITS) && _INTEGRAL_MAX_BITS >= 64 )
164-#define _HAVE_INT64
165-#endif /* __GNUC__/__WATCOMC */
166-#if defined(_HAVE_INT64) || (defined(_INTEGRAL_MAX_BITS) && _INTEGRAL_MAX_BITS >= 64)
153+
167154 typedef __int64 LONGLONG;
168155 typedef unsigned __int64 DWORDLONG;
169-#else
170-typedef double LONGLONG,DWORDLONG;
171-#endif
156+
172157 typedef LONGLONG *PLONGLONG;
173158 typedef DWORDLONG *PDWORDLONG;
174159 typedef DWORDLONG ULONGLONG,*PULONGLONG;
175160 typedef LONGLONG USN;
176-#ifdef _HAVE_INT64
161+
177162 #define Int32x32To64(a,b) ((LONGLONG)(a)*(LONGLONG)(b))
178163 #define UInt32x32To64(a,b) ((DWORDLONG)(a)*(DWORDLONG)(b))
179164 #define Int64ShllMod32(a,b) ((DWORDLONG)(a)<<(b))
180165 #define Int64ShraMod32(a,b) ((LONGLONG)(a)>>(b))
181166 #define Int64ShrlMod32(a,b) ((DWORDLONG)(a)>>(b))
182-#endif
167+
183168 #define ANSI_NULL '\0'
184169 #define UNICODE_NULL L'\0'
185170 typedef BYTE BOOLEAN,*PBOOLEAN;
@@ -3819,7 +3804,7 @@ typedef enum _POWER_INFORMATION_LEVEL {
38193804 #if (_WIN32_WINNT >= 0x0500)
38203805 typedef LONG (WINAPI *PVECTORED_EXCEPTION_HANDLER)(PEXCEPTION_POINTERS);
38213806 #endif
3822-#if 1 /* (WIN32_WINNT >= 0x0500) */
3807+#if (WIN32_WINNT >= _WIN32_WINNT_WINXP)
38233808 typedef struct _SYSTEM_POWER_INFORMATION {
38243809 ULONG MaxIdlenessAllowed;
38253810 ULONG Idleness;
@@ -3939,8 +3924,6 @@ ULONGLONG WINAPI VerSetConditionMask(ULONGLONG,DWORD,BYTE);
39393924 #endif
39403925
39413926 #ifdef _X86_
3942-#if defined(__GNUC__)
3943-#if (__GNUC__ >= 3)
39443927 /* Support -masm=intel. */
39453928 static __inline__ PVOID GetCurrentFiber(void)
39463929 {
@@ -3976,42 +3959,7 @@ static __inline__ struct _TEB * NtCurrentTeb(void)
39763959 return ret;
39773960 }
39783961
3979-#else /* __GNUC__ >= 3 */
3980-static __inline__ PVOID GetCurrentFiber(void)
3981-{
3982- void* ret;
3983- __asm__ __volatile__ (
3984- "movl %%fs:0x10,%0"
3985- : "=r" (ret) /* allow use of reg eax,ebx,ecx,edx,esi,edi */
3986- );
3987- return ret;
3988-}
3989-
3990-static __inline__ PVOID GetFiberData(void)
3991-{
3992- void* ret;
3993- __asm__ __volatile__ (
3994- "movl %%fs:0x10,%0\n\t"
3995- "movl (%0),%0"
3996- : "=r" (ret) /* allow use of reg eax,ebx,ecx,edx,esi,edi */
3997- );
3998- return ret;
3999-}
4000-
4001-static __inline__ struct _TEB * NtCurrentTeb(void)
4002-{
4003- struct _TEB *ret;
4004-
4005- __asm__ __volatile__ (
4006- "movl %%fs:0x18, %0\n"
4007- : "=r" (ret)
4008- : /* no inputs */
4009- );
4010- return ret;
4011-}
4012-#endif /* __GNUC__ >= 3 */
4013-
4014-#else
3962+#else /* ! _X86_ */
40153963
40163964 PVOID GetCurrentFiber(void);
40173965 #pragma aux GetCurrentFiber = \
@@ -4032,7 +3980,6 @@ struct _TEB * NtCurrentTeb(void);
40323980 value [eax] \
40333981 modify [eax];
40343982
4035-#endif /* __GNUC__ */
40363983 #endif /* _X86_ */
40373984
40383985 #if _WIN32_WINNT >= _WIN32_WINNT_VISTA
--- a/include/winperf.h
+++ b/include/winperf.h
@@ -1,8 +1,6 @@
11 #ifndef _WINPERF_H
22 #define _WINPERF_H
3-#if __GNUC__ >=3
43 #pragma GCC system_header
5-#endif
64
75 #ifdef __cplusplus
86 extern "C" {
--- a/include/winreg.h
+++ b/include/winreg.h
@@ -1,8 +1,6 @@
11 #ifndef _WINREG_H
22 #define _WINREG_H
3-#if __GNUC__ >= 3
43 #pragma GCC system_header
5-#endif
64
75 #ifndef WINADVAPI
86 #define WINADVAPI
--- a/include/winresrc.h
+++ b/include/winresrc.h
@@ -1,8 +1,6 @@
11 #ifndef _WINRESRC_H
22 #define _WINRESRC_H
3-#if __GNUC__ >=3
43 #pragma GCC system_header
5-#endif
64
75 #define WIN32_LEAN_AND_MEAN
86 #include <winuser.h>
--- a/include/winsnmp.h
+++ b/include/winsnmp.h
@@ -23,9 +23,7 @@
2323
2424 #ifndef _WINSNMP_H
2525 #define _WINSNMP_H
26-#if __GNUC__ >= 3
2726 #pragma GCC system_header
28-#endif
2927
3028 #ifndef _WINDOWS_H
3129 #include <windows.h>
--- a/include/winsock.h
+++ b/include/winsock.h
@@ -10,9 +10,7 @@
1010
1111 #ifndef _WINSOCK_H
1212 #define _WINSOCK_H
13-#if __GNUC__ >=3
1413 #pragma GCC system_header
15-#endif
1614
1715 #define _GNU_H_WINDOWS32_SOCKETS
1816
--- a/include/winsock2.h
+++ b/include/winsock2.h
@@ -13,9 +13,7 @@
1313 #if !(defined _WINSOCK2_H || defined _WINSOCK_H)
1414 #define _WINSOCK2_H
1515 #define _WINSOCK_H /* to prevent later inclusion of winsock.h */
16-#if __GNUC__ >= 3
1716 #pragma GCC system_header
18-#endif
1917
2018 #define _GNU_H_WINDOWS32_SOCKETS
2119
--- a/include/winspool.h
+++ b/include/winspool.h
@@ -1,8 +1,6 @@
11 #ifndef _WINSPOOL_H
22 #define _WINSPOOL_H
3-#if __GNUC__ >=3
43 #pragma GCC system_header
5-#endif
64
75 #ifdef __cplusplus
86 extern "C" {
--- a/include/winsvc.h
+++ b/include/winsvc.h
@@ -1,8 +1,6 @@
11 #ifndef _WINSVC_H
22 #define _WINSVC_H
3-#if __GNUC__ >= 3
43 #pragma GCC system_header
5-#endif
64
75 #ifndef WINADVAPI
86 #define WINADVAPI
--- a/include/winuser.h
+++ b/include/winuser.h
@@ -1,8 +1,6 @@
11 #ifndef _WINUSER_H
22 #define _WINUSER_H
3-#if __GNUC__ >= 3
43 #pragma GCC system_header
5-#endif
64
75 #ifdef __cplusplus
86 extern "C" {
@@ -552,10 +550,8 @@ extern "C" {
552550 #define IS_INTRESOURCE(i) (((ULONG_PTR)(i) >> 16) == 0)
553551 #define MAKEINTRESOURCEA(i) (LPSTR)((DWORD)((WORD)(i)))
554552 #define MAKEINTRESOURCEW(i) (LPWSTR)((DWORD)((WORD)(i)))
555-#ifndef XFree86Server
556553 # define RT_CURSOR MAKEINTRESOURCE(1)
557554 # define RT_FONT MAKEINTRESOURCE(8)
558-#endif /* ndef XFree86Server */
559555 #define RT_BITMAP MAKEINTRESOURCE(2)
560556 #define RT_ICON MAKEINTRESOURCE(3)
561557 #define RT_MENU MAKEINTRESOURCE(4)
--- a/include/winver.h
+++ b/include/winver.h
@@ -1,8 +1,6 @@
11 #ifndef _WINVER_H
22 #define _WINVER_H
3-#if __GNUC__ >=3
43 #pragma GCC system_header
5-#endif
64
75 #ifdef __cplusplus
86 extern "C" {
--- a/include/ws2spi.h
+++ b/include/ws2spi.h
@@ -17,9 +17,7 @@
1717 */
1818 #ifndef _WS2SPI_H
1919 #define _WS2SPI_H
20-#if __GNUC__ >= 3
2120 #pragma GCC system_header
22-#endif
2321
2422 #include <winsock2.h>
2523
--- a/include/ws2tcpip.h
+++ b/include/ws2tcpip.h
@@ -8,9 +8,7 @@
88
99 #ifndef _WS2TCPIP_H
1010 #define _WS2TCPIP_H
11-#if __GNUC__ >=3
1211 #pragma GCC system_header
13-#endif
1412
1513 #if (defined _WINSOCK_H && !defined _WINSOCK2_H)
1614 #error "ws2tcpip.h is not compatible with winsock.h. Include winsock2.h instead."
--- a/include/wsahelp.h
+++ b/include/wsahelp.h
@@ -1,8 +1,6 @@
11 #ifndef _WSAHELP_H
22 #define _WSAHELP_H
3-#if __GNUC__ >= 3
43 #pragma GCC system_header
5-#endif
64
75 #include <winsock2.h>
86 #include <ntsecapi.h>
--- a/include/wsipx.h
+++ b/include/wsipx.h
@@ -3,9 +3,7 @@
33
44 #ifndef _WSIPX_H
55 #define _WSIPX_H
6-#if __GNUC__ >=3
76 #pragma GCC system_header
8-#endif
97
108 #ifdef __cplusplus
119 extern "C" {
--- a/include/wsnetbs.h
+++ b/include/wsnetbs.h
@@ -1,8 +1,6 @@
11 #ifndef _WSNETBS_H
22 #define _WSNETBS_H
3-#if __GNUC__ >=3
43 #pragma GCC system_header
5-#endif
64
75 #define NETBIOS_NAME_LENGTH 16
86 #define NETBIOS_UNIQUE_NAME 0