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.
* 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>
#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.
#ifndef _WINGDI_H
#define _WINGDI_H
#define _WINGDI_
-#if __GNUC__ >= 3
#pragma GCC system_header
-#endif
#ifdef __cplusplus
extern "C" {
#ifndef _WININET_H
#define _WININET_H
-#if __GNUC__ >=3
#pragma GCC system_header
-#endif
#include <windows.h>
#ifdef __cplusplus
#ifndef _WINIOCTL_H
#define _WINIOCTL_H
-#if __GNUC__ >=3
#pragma GCC system_header
-#endif
#ifdef __cplusplus
extern "C" {
#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>
#ifndef _WINNETWK_H
#define _WINNETWK_H
-#if __GNUC__ >=3
#pragma GCC system_header
-#endif
#ifdef __cplusplus
extern "C" {
#ifndef _WINNLS_H
#define _WINNLS_H
-#if __GNUC__ >= 3
#pragma GCC system_header
-#endif
#ifndef WINBASEAPI
#ifdef __W32API_USE_DLLIMPORT__