OSDN Git Service

More on assuming GCC is greater than or equal to version 3.5.4 and that
authorEarnie Boyd <earnie@users.sourceforge.net>
Fri, 31 Aug 2012 16:47:27 +0000 (12:47 -0400)
committerEarnie Boyd <earnie@users.sourceforge.net>
Fri, 31 Aug 2012 16:47:27 +0000 (12:47 -0400)
GCC is the only compiler to be used for MinGW.org.

* include/wingdi.h: Remove unneeded filters based on the assumptions.
* include/wininet.h: Ditto.
* include/winocotl.h: Ditto.
* include/winldap.h:Ditto.
* include/winnls.h: Ditto.
* include/_mingw.h: Give an error if __GNUC__ isn't defined or isn't >=
version 3.4.5.

ChangeLog
include/_mingw.h
include/wingdi.h
include/wininet.h
include/winioctl.h
include/winldap.h
include/winnetwk.h
include/winnls.h

index 92d4ff8..019181b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
        * include/wsahelp.h: Ditto.
        * include/wsipx.h: Ditto.
        * include/wsnetbs.h: Ditto.
+       * include/wingdi.h: Ditto.
+       * include/wininet.h: Ditto.
+       * include/winocotl.h: Ditto.
+       * include/winldap.h:Ditto.
+       * include/winnls.h: Ditto.
+       * include/_mingw.h: Give an error if __GNUC__ isn't defined or isn't >=
+       version 3.4.5.
 
 2012-08-28  Earnie Boyd  <earnie@users.sourceforge.net>
 
index f35ede4..ad6bbc6 100644 (file)
 
 #pragma GCC system_header
 
+#ifndef __GNUC__
+#error ERROR: You must use a GNU Compiler.
+#endif
+
+#if (__GNUC__ < 3 || !defined(__GNUC__MINOR__) || (__GNUC__ = 3 && __GNUC_MINOR__ < 4) || (__GNUC__ = 3 && __GNUC_MINOR__ >= 4 && __GNUC_PATCHLEVEL__ < 5))
+#error ERROR: You must use a GNU Compiler version >= 3.4.5.
+#endif
+
 /* These are defined by the user (or the compiler)
    to specify how identifiers are imported from a DLL.
 
index 9ecbd51..6921ddb 100644 (file)
@@ -1,9 +1,7 @@
 #ifndef _WINGDI_H
 #define _WINGDI_H
 #define _WINGDI_
-#if __GNUC__ >= 3
 #pragma GCC system_header
-#endif
 
 #ifdef __cplusplus
 extern "C" {
index cadd305..5101fd3 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef _WININET_H
 #define _WININET_H
-#if __GNUC__ >=3
 #pragma GCC system_header
-#endif
 
 #include <windows.h>
 #ifdef __cplusplus
index efa0b73..aee2789 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef _WINIOCTL_H
 #define _WINIOCTL_H
-#if __GNUC__ >=3
 #pragma GCC system_header
-#endif
 
 #ifdef __cplusplus
 extern "C" {
index cf7083b..cf58e0a 100644 (file)
 
 #ifndef _WINLDAP_H
 #define _WINLDAP_H
-#if __GNUC__ >= 3
 #pragma GCC system_header
-#endif
 
-#ifndef _SCHANNEL_H
 #include <schannel.h>
-#endif
-
-#ifndef _WINBER_H
 #include <winber.h>
-#endif
 
 #ifndef WINLDAPAPI
 #define WINLDAPAPI DECLSPEC_IMPORT
 #endif
 
 #ifndef _WINLDAP_DEPRECATED
-#if (( __GNUC__ == 3 && __GNUC_MINOR__ > 0 ) || __GNUC__ > 3)
 #define _WINLDAP_DEPRECATED __attribute__((__deprecated__))
-#else
-#define _WINLDAP_DEPRECATED
-#endif
 #endif
 
 #include <pshpack4.h>
index 022bf8b..983af36 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef _WINNETWK_H
 #define _WINNETWK_H
-#if __GNUC__ >=3
 #pragma GCC system_header
-#endif
 
 #ifdef __cplusplus
 extern "C" {
index b03eb33..d638e70 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef _WINNLS_H
 #define _WINNLS_H
-#if __GNUC__ >= 3
 #pragma GCC system_header
-#endif
 
 #ifndef WINBASEAPI
 #ifdef __W32API_USE_DLLIMPORT__