* include/icm.h (_mingw.h): Include.
(_WIN32_WINNT): Use MACRO constant for comparison instead of integer
and move filters to the end of the file.
(UNICODE): Use __AW() macro for mapping non-specific symbols.
* include/imm.h: Ditto.
* include/iphlpapi.h (_mingw.h): Include.
(_WIN32_WINNT): Use MACRO constant for comparison instead of integer
and move filters to the end of the file.
* include/iptypes.h: Ditto.
* include/ipxconst.h: Ditto.
* include/ipxrtdef.h: Ditto.
* include/imagehlp.h (_mingw.h): Include.
(UNICODE): Use __AW() macro for mapping non-specific symbols.
* include/intshcut.h: Ditto.
* include/inttypes.h (_mingw.h): Remove comment and move to top of file.
* include/libgen.h: Ditto.
* include/idispids.h (_mingw.h): Include.
* include/il21dec.h: Ditto.
* include/initguid.h: Ditto.
* include/ipexport.h: Ditto.
* include/ipifcons.h: Ditto.
* include/ipinfoid.h: Ditto.
* include/iprtrmib.h: Ditto.
* include/isguids.h: Ditto.
* include/ks.h: Ditto.
* include/ksmedia.h: Ditto.
* include/largeint.h: Ditto.
* include/io.h (_mingw.h): Remove comment and move to top of file.
(_findfirst*): What a mess. Reworked.
(_wfindfirst*): Ditto.
(_findnext*): Ditto.
(_wfindnext*): Ditto.
(_finddata*_t): Ditto.
(_wfinddata*_t): Ditto.
(_FINDDATA_T_DEFINED): Add filter.
(__MSVCRT_VERSION__): Removed throughout.
* include/ipxtfflt.h (_mingw.h): Include.
(_IPX_TRAFFIC_FILTER_INFO): Add structure.
(_IPX_TRAFFIC_FILTER_GLOBAL_INFO): Ditto.
* include/limits.h (_mingw.h): Remove comment and move to top of file.
(__STRICT_ANSI__): Remove filters as unneeded.
(_CHAR_UNSIGNED): Add as a user defined filter for unsigned char.
* include/sdkddkver.h (_WIN32_WINNT_WIN98): Correct value.
(_WIN32_WINNT_WINME): Ditto.
-2012-09-10 Earnie Boyd <earnie@users.sourceforge.ent>
+2012-09-11 Earnie Boyd <earnie@users.sourceforge.net>
+
+ Redo the filters based on assumptions discussed in mingw-dvlpr list.
+
+ * include/icm.h (_mingw.h): Include.
+ (_WIN32_WINNT): Use MACRO constant for comparison instead of integer
+ and move filters to the end of the file.
+ (UNICODE): Use __AW() macro for mapping non-specific symbols.
+ * include/imm.h: Ditto.
+
+ * include/iphlpapi.h (_mingw.h): Include.
+ (_WIN32_WINNT): Use MACRO constant for comparison instead of integer
+ and move filters to the end of the file.
+ * include/iptypes.h: Ditto.
+ * include/ipxconst.h: Ditto.
+ * include/ipxrtdef.h: Ditto.
+
+ * include/imagehlp.h (_mingw.h): Include.
+ (UNICODE): Use __AW() macro for mapping non-specific symbols.
+ * include/intshcut.h: Ditto.
+
+ * include/inttypes.h (_mingw.h): Remove comment and move to top of file.
+ * include/libgen.h: Ditto.
+
+ * include/idispids.h (_mingw.h): Include.
+ * include/il21dec.h: Ditto.
+ * include/initguid.h: Ditto.
+ * include/ipexport.h: Ditto.
+ * include/ipifcons.h: Ditto.
+ * include/ipinfoid.h: Ditto.
+ * include/iprtrmib.h: Ditto.
+ * include/isguids.h: Ditto.
+ * include/ks.h: Ditto.
+ * include/ksmedia.h: Ditto.
+ * include/largeint.h: Ditto.
+
+ * include/io.h (_mingw.h): Remove comment and move to top of file.
+ (_findfirst*): What a mess. Reworked.
+ (_wfindfirst*): Ditto.
+ (_findnext*): Ditto.
+ (_wfindnext*): Ditto.
+ (_finddata*_t): Ditto.
+ (_wfinddata*_t): Ditto.
+ (_FINDDATA_T_DEFINED): Add filter.
+ (__MSVCRT_VERSION__): Removed throughout.
+
+ * include/ipxtfflt.h (_mingw.h): Include.
+ (_IPX_TRAFFIC_FILTER_INFO): Add structure.
+ (_IPX_TRAFFIC_FILTER_GLOBAL_INFO): Ditto.
+
+ * include/limits.h (_mingw.h): Remove comment and move to top of file.
+ (__STRICT_ANSI__): Remove filters as unneeded.
+ (_CHAR_UNSIGNED): Add as a user defined filter for unsigned char.
+
+ * include/sdkddkver.h (_WIN32_WINNT_WIN98): Correct value.
+ (_WIN32_WINNT_WINME): Ditto.
+
+2012-09-10 Earnie Boyd <earnie@users.sourceforge.net>
Redo the filters based on assumptions discussed in mingw-dvlpr list.
#ifndef _ICM_H
#define _ICM_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#endif
-#if (_WIN32_WINDOWS >= 0x0410 || _WIN32_WINNT >= 0x0500)
+#if (_WIN32_WINNT >= _WIN32_WINNT_WIN98)
#define MAX_COLOR_CHANNELS 8
#define PROFILE_FILENAME 1
#define PROFILE_MEMBUFFER 2
BOOL WINAPI UnregisterCMMA(PCSTR,DWORD);
BOOL WINAPI UnregisterCMMW(PCWSTR,DWORD);
-#ifdef UNICODE
-typedef PCMSCALLBACKW PCMSCALLBACK;
-typedef COLORMATCHSETUPW COLORMATCHSETUP,*PCOLORMATCHSETUP,*LPCOLORMATCHSETUP;
-typedef ENUMTYPEW ENUMTYPE,*PENUMTYPE,*LPENUMTYPE;
-#define AssociateColorProfileWithDevice AssociateColorProfileWithDeviceW
-#define CreateColorTransform CreateColorTransformW
-#define CreateProfileFromLogColorSpace CreateProfileFromLogColorSpaceW
-#define DisassociateColorProfileFromDevice DisassociateColorProfileFromDeviceW
-#define EnumColorProfiles EnumColorProfilesW
-#define GetColorDirectory GetColorDirectoryW
-#define GetStandardColorSpaceProfile GetStandardColorSpaceProfileW
-#define InstallColorProfile InstallColorProfileW
-#define OpenColorProfile OpenColorProfileW
-#define RegisterCMM RegisterCMMW
-#define SetStandardColorSpaceProfile SetStandardColorSpaceProfileW
-#define SetupColorMatching SetupColorMatchingW
-#define UninstallColorProfile UninstallColorProfileW
-#define UnregisterCMM UnregisterCMMW
-#else /* UNICODE */
-typedef PCMSCALLBACKA PCMSCALLBACK;
-typedef COLORMATCHSETUPA COLORMATCHSETUP,*PCOLORMATCHSETUP,*LPCOLORMATCHSETUP;
-typedef ENUMTYPEA ENUMTYPE,*PENUMTYPE,*LPENUMTYPE;
-#define AssociateColorProfileWithDevice AssociateColorProfileWithDeviceA
-#define CreateColorTransform CreateColorTransformA
-#define CreateProfileFromLogColorSpace CreateProfileFromLogColorSpaceA
-#define DisassociateColorProfileFromDevice DisassociateColorProfileFromDeviceA
-#define EnumColorProfiles EnumColorProfilesA
-#define GetColorDirectory GetColorDirectoryA
-#define GetStandardColorSpaceProfile GetStandardColorSpaceProfileA
-#define InstallColorProfile InstallColorProfileA
-#define OpenColorProfile OpenColorProfileA
-#define RegisterCMM RegisterCMMA
-#define SetStandardColorSpaceProfile SetStandardColorSpaceProfileA
-#define SetupColorMatching SetupColorMatchingA
-#define UninstallColorProfile UninstallColorProfileA
-#define UnregisterCMM UnregisterCMMA
-#endif /* !UNICODE */
+typedef __AW(PCMSCALLBACK) PCMSCALLBACK;
+typedef __AW(COLORMATCHSETUP) COLORMATCHSETUP,*PCOLORMATCHSETUP,*LPCOLORMATCHSETUP;
+typedef __AW(ENUMTYPE) ENUMTYPE,*PENUMTYPE,*LPENUMTYPE;
+#define AssociateColorProfileWithDevice __AW(AssociateColorProfileWithDevice)
+#define CreateColorTransform __AW(CreateColorTransform)
+#define CreateProfileFromLogColorSpace __AW(CreateProfileFromLogColorSpace)
+#define DisassociateColorProfileFromDevice __AW(DisassociateColorProfileFromDevice)
+#define EnumColorProfiles __AW(EnumColorProfiles)
+#define GetColorDirectory __AW(GetColorDirectory)
+#define GetStandardColorSpaceProfile __AW(GetStandardColorSpaceProfile)
+#define InstallColorProfile __AW(InstallColorProfile)
+#define OpenColorProfile __AW(OpenColorProfile)
+#define RegisterCMM __AW(RegisterCMM)
+#define SetStandardColorSpaceProfile __AW(SetStandardColorSpaceProfile)
+#define SetupColorMatching __AW(SetupColorMatching)
+#define UninstallColorProfile __AW(UninstallColorProfile)
+#define UnregisterCMM __AW(UnregisterCMM)
-#endif /* (_WIN32_WINDOWS >= 0x0410 || _WIN32_WINNT >= 0x0500) */
+#endif /* (_WIN32_WINNT >= _WIN32_WINNT_WIN98) */
#ifdef __cplusplus
}
#ifndef _IDISPIDS_H
#define _IDISPIDS_H
#pragma GCC system_header
+#include <_mingw.h>
#define DISPID_AMBIENT_OFFLINEIFNOTCONNECTED (-5501)
#define DISPID_AMBIENT_SILENT (-5502)
#ifndef _IL21DEC_H
#define _IL21DEC_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#ifndef _IMAGEHLP_H
#define _IMAGEHLP_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#endif /* RC_INVOKED */
-#ifdef UNICODE
-#define MapFileAndCheckSum MapFileAndCheckSumW
-#else
-#define MapFileAndCheckSum MapFileAndCheckSumA
-#endif
+#define MapFileAndCheckSum __AW(MapFileAndCheckSum)
#ifdef __cplusplus
}
#ifndef _IMM_H
#define _IMM_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#define WM_IME_CHAR 0x286
#define WM_IME_KEYDOWN 0x290
#define WM_IME_KEYUP 0x291
-#if (_WIN32_WINNT >= 0x0500)
-#define WM_IME_REQUEST 0x0288
-#endif
#define IMC_GETCANDIDATEPOS 7
#define IMC_SETCANDIDATEPOS 8
#define IMC_GETCOMPOSITIONFONT 9
} IMEMENUITEMINFOW,*PIMEMENUITEMINFOW,*LPIMEMENUITEMINFOW;
typedef int (CALLBACK *REGISTERWORDENUMPROCA)(LPCSTR, DWORD, LPCSTR, LPVOID);
typedef int (CALLBACK *REGISTERWORDENUMPROCW)(LPCWSTR, DWORD, LPCWSTR, LPVOID);
-#ifdef UNICODE
-#define REGISTERWORDENUMPROC REGISTERWORDENUMPROCW
-typedef REGISTERWORDW REGISTERWORD,*PREGISTERWORD,*LPREGISTERWORD;
-typedef STYLEBUFW STYLEBUF,*PSTYLEBUF,*LPSTYLEBUF;
-typedef IMEMENUITEMINFOW IMEMENUITEMINFO,*PIMEMENUITEMINFO,*LPIMEMENUITEMINFO;
-#else
-#define REGISTERWORDENUMPROC REGISTERWORDENUMPROCA
-typedef REGISTERWORDA REGISTERWORD,*PREGISTERWORD,*LPREGISTERWORD;
-typedef STYLEBUFA STYLEBUF,*PSTYLEBUF,*LPSTYLEBUF;
-typedef IMEMENUITEMINFOA IMEMENUITEMINFO,*PIMEMENUITEMINFO,*LPIMEMENUITEMINFO;
-#endif
+#define REGISTERWORDENUMPROC __AW(REGISTERWORDENUMPROC)
+typedef __AW(REGISTERWORD) REGISTERWORD,*PREGISTERWORD,*LPREGISTERWORD;
+typedef __AW(STYLEBUF) STYLEBUF,*PSTYLEBUF,*LPSTYLEBUF;
+typedef __AW(IMEMENUITEMINFO) IMEMENUITEMINFO,*PIMEMENUITEMINFO,*LPIMEMENUITEMINFO;
HKL WINAPI ImmInstallIMEA(LPCSTR,LPCSTR);
HKL WINAPI ImmInstallIMEW(LPCWSTR,LPCWSTR);
HWND WINAPI ImmGetDefaultIMEWnd(HWND);
DWORD WINAPI ImmGetImeMenuItemsA(HIMC,DWORD,DWORD,LPIMEMENUITEMINFOA,LPIMEMENUITEMINFOA,DWORD);
DWORD WINAPI ImmGetImeMenuItemsW(HIMC,DWORD,DWORD,LPIMEMENUITEMINFOW,LPIMEMENUITEMINFOW,DWORD);
-#ifdef UNICODE
-#define ImmEnumRegisterWord ImmEnumRegisterWordW
-#define ImmGetRegisterWordStyle ImmGetRegisterWordStyleW
-#define ImmUnregisterWord ImmUnregisterWordW
-#define ImmRegisterWord ImmRegisterWordW
-#define ImmInstallIME ImmInstallIMEW
-#define ImmIsUIMessage ImmIsUIMessageW
-#define ImmGetConversionList ImmGetConversionListW
-#define ImmEscape ImmEscapeW
-#define ImmConfigureIME ImmConfigureIMEW
-#ifndef NOGDI
-#define ImmSetCompositionFont ImmSetCompositionFontW
-#define ImmGetCompositionFont ImmGetCompositionFontW
-#endif
-#define ImmGetGuideLine ImmGetGuideLineW
-#define ImmGetCandidateList ImmGetCandidateListW
-#define ImmGetCandidateListCount ImmGetCandidateListCountW
-#define ImmSetCompositionString ImmSetCompositionStringW
-#define ImmGetCompositionString ImmGetCompositionStringW
-#define ImmGetDescription ImmGetDescriptionW
-#define ImmGetIMEFileName ImmGetIMEFileNameW
-#define ImmGetImeMenuItems ImmGetImeMenuItemsW
-#else
-#define ImmEnumRegisterWord ImmEnumRegisterWordA
-#define ImmGetRegisterWordStyle ImmGetRegisterWordStyleA
-#define ImmUnregisterWord ImmUnregisterWordA
-#define ImmRegisterWord ImmRegisterWordA
-#define ImmInstallIME ImmInstallIMEA
-#define ImmIsUIMessage ImmIsUIMessageA
-#define ImmGetConversionList ImmGetConversionListA
-#define ImmEscape ImmEscapeA
-#define ImmConfigureIME ImmConfigureIMEA
+#define ImmEnumRegisterWord __AW(ImmEnumRegisterWord)
+#define ImmGetRegisterWordStyle __AW(ImmGetRegisterWordStyle)
+#define ImmUnregisterWord __AW(ImmUnregisterWord)
+#define ImmRegisterWord __AW(ImmRegisterWord)
+#define ImmInstallIME __AW(ImmInstallIME)
+#define ImmIsUIMessage __AW(ImmIsUIMessage)
+#define ImmGetConversionList __AW(ImmGetConversionList)
+#define ImmEscape __AW(ImmEscape)
+#define ImmConfigureIME __AW(ImmConfigureIME)
#ifndef NOGDI
-#define ImmSetCompositionFont ImmSetCompositionFontA
-#define ImmGetCompositionFont ImmGetCompositionFontA
+#define ImmSetCompositionFont __AW(ImmSetCompositionFont)
+#define ImmGetCompositionFont __AW(ImmGetCompositionFont)
#endif
-#define ImmGetGuideLine ImmGetGuideLineA
-#define ImmGetCandidateList ImmGetCandidateListA
-#define ImmGetCandidateListCount ImmGetCandidateListCountA
-#define ImmSetCompositionString ImmSetCompositionStringA
-#define ImmGetCompositionString ImmGetCompositionStringA
-#define ImmGetDescription ImmGetDescriptionA
-#define ImmGetIMEFileName ImmGetIMEFileNameA
-#define ImmGetImeMenuItems ImmGetImeMenuItemsW
+#define ImmGetGuideLine __AW(ImmGetGuideLine)
+#define ImmGetCandidateList __AW(ImmGetCandidateList)
+#define ImmGetCandidateListCount __AW(ImmGetCandidateListCount)
+#define ImmSetCompositionString __AW(ImmSetCompositionString)
+#define ImmGetCompositionString __AW(ImmGetCompositionString)
+#define ImmGetDescription __AW(ImmGetDescription)
+#define ImmGetIMEFileName __AW(ImmGetIMEFileName)
+#define ImmGetImeMenuItems __AW(ImmGetImeMenuItems)
+
+#if (_WIN32_WINNT >= _WIN32_WINNT_WIN2K)
+#define WM_IME_REQUEST 0x0288
#endif
+
#ifdef __cplusplus
}
#endif
#ifndef _INITGUID_H
#define _INITGUID_H
#pragma GCC system_header
+#include <_mingw.h>
#ifndef DEFINE_GUID
#include <basetyps.h>
#endif
+
#undef DEFINE_GUID
#define DEFINE_GUID(n,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) GUID_EXT const GUID n GUID_SECT = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}}
+
#endif
#ifndef _INTSHCUT_H
#define _INTSHCUT_H
#pragma GCC system_header
+#include <_mingw.h>
#include <isguids.h>
+
#ifdef __cplusplus
extern "C" {
#endif
+
#define INTSHCUTAPI DECLSPEC_IMPORT
#define E_FLAGS MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x1000)
#define IS_E_EXEC_FAILED MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x2002)
HRESULT WINAPI TranslateURLW(PCWSTR,DWORD,PWSTR*);
HRESULT WINAPI URLAssociationDialogA(HWND,DWORD,PCSTR,PCSTR,PSTR,UINT);
HRESULT WINAPI URLAssociationDialogW(HWND,DWORD,PCWSTR,PCWSTR,PWSTR,UINT);
-#ifdef UNICODE
-#define TranslateURL TranslateURLW
-#define MIMEAssociationDialog MIMEAssociationDialogW
-#define URLAssociationDialog URLAssociationDialogW
-#else
-#define TranslateURL TranslateURLA
-#define MIMEAssociationDialog MIMEAssociationDialogA
-#define URLAssociationDialog URLAssociationDialogA
-#endif
+#define TranslateURL __AW(TranslateURL)
+#define MIMEAssociationDialog __AW(MIMEAssociationDialog)
+#define URLAssociationDialog __AW(URLAssociationDialog)
+
#ifdef __cplusplus
}
#endif
+
#endif
#ifndef _INTTYPES_H_
#define _INTTYPES_H_
#pragma GCC system_header
+#include <_mingw.h>
/* 7.8 Format conversion of integer types <inttypes.h> */
-#include <_mingw.h>
#include <stdint.h>
#define __need_wchar_t
#include <stddef.h>
#ifndef _IO_H_
#define _IO_H_
#pragma GCC system_header
-
-/* All the headers include this file. */
#include <_mingw.h>
/* MSVC's io.h contains the stuff from dir.h, so I will too.
#define FILENAME_MAX (260)
#endif
+#ifndef _FINDDATA_T_DEFINED
/*
* The following structure is filled in by _findfirst or _findnext when
* they succeed in finding a match.
*/
-struct _finddata_t
-{
- unsigned attrib; /* Attributes, see constants above. */
- time_t time_create;
- time_t time_access; /* always midnight local time */
- time_t time_write;
+struct _finddata32_t {
+ unsigned attrib;
+ __time32_t time_create;
+ __time32_t time_access;
+ __time32_t time_write;
_fsize_t size;
- char name[FILENAME_MAX]; /* may include spaces. */
-};
-
-struct _finddatai64_t {
- unsigned attrib;
- time_t time_create;
- time_t time_access;
- time_t time_write;
- __int64 size;
- char name[FILENAME_MAX];
+ char name[FILENAME_MAX];
};
-#if __MSVCRT_VERSION__ >= 0x0601
struct __finddata64_t {
unsigned attrib;
__time64_t time_create;
__time64_t time_access;
__time64_t time_write;
-/* 8 bytes are returned so it can't be _fsize_t */
__int64 size;
char name[FILENAME_MAX];
};
-#endif
-
-#if __MSVCRT_VERSION__ >= 0x0800
-struct _finddata32_t {
- unsigned attrib;
- __time32_t time_create;
- __time32_t time_access;
- __time32_t time_write;
- __int32 size;
- char name[FILENAME_MAX];
-};
struct _finddata32i64_t {
unsigned attrib;
__time64_t time_create;
__time64_t time_access;
__time64_t time_write;
- __int32 size;
+ _fsize_t size;
char name[FILENAME_MAX];
};
-#endif /* __MSVCRT_VERSION__ >= 0x0800 */
-
+#ifdef _USE_32BIT_TIME_T
+#define _finddata_t _finddata32_t
+#define _finddatai64_t _finddata32i64_t
+#define _findfirst _findfirst32
+#define _findnext _findnext32
+#define _findfirsti64 _findfirst32i64
+#define _findnexti64 _findnext32i64
+#else
+#define _finddata_t _finddata64i32_t
+#define _finddatai64_t __finddata64_t
+#define _findfirst _findfirst64i32
+#define _findnext _findnext64i32
+#define _findfirsti64 _findfirst64
+#define _findnexti64 _findnext64
+#endif
+#define _FINDDATA_T_DEFINED
+#endif
#ifndef _WFINDDATA_T_DEFINED
-struct _wfinddata_t {
- unsigned attrib;
- time_t time_create; /* -1 for FAT file systems */
- time_t time_access; /* -1 for FAT file systems */
- time_t time_write;
- _fsize_t size;
- wchar_t name[FILENAME_MAX]; /* may include spaces. */
-};
-
-struct _wfinddatai64_t {
- unsigned attrib;
- time_t time_create;
- time_t time_access;
- time_t time_write;
- __int64 size;
- wchar_t name[FILENAME_MAX];
+struct _wfinddata32_t {
+ unsigned attrib;
+ __time32_t time_create;
+ __time32_t time_access;
+ __time32_t time_write;
+ _fsize_t size;
+ wchar_t name[FILENAME_MAX];
};
-#if __MSVCRT_VERSION__ >= 0x0601
-struct __wfinddata64_t {
+struct _wfinddata64_t {
unsigned attrib;
__time64_t time_create;
__time64_t time_access;
__int64 size;
wchar_t name[FILENAME_MAX];
};
-#endif
-
-#if __MSVCRT_VERSION__ >= 0x0800
-struct __wfinddata32_t {
- unsigned attrib;
- __time32_t time_create;
- __time32_t time_access;
- __time32_t time_write;
- __int32 size;
- wchar_t name[FILENAME_MAX];
-};
struct _wfinddata32i64_t {
unsigned attrib;
__int32 size;
wchar_t name[FILENAME_MAX];
};
-#endif /* __MSVCRT_VERSION__ >= 0x0800 */
-
-
+#ifdef _USE_32BIT_TIME_T
+#define _wfinddata_t _wfinddata32_t
+#define _wfinddatai64_t _wfinddata32i64_t
+#define _wfindfirst _wfindfirst32
+#define _wfindnext _wfindnext32
+#define _wfindfirsti64 _wfindfirst32i64
+#define _wfindnexti64 _wfindnext32i64
+#else /* ! _USE_32BIT_TIME_T */
+#define _wfinddata_t _wfinddata64i32_t
+#define _wfinddatai64_t _wfinddata64_t
+#define _wfindfirst _wfindfirst64i32
+#define _wfindnext _wfindnext64i32
+#define _wfindfirsti64 _wfindfirst64
+#define _wfindnexti64 _wfindnext64
+#endif /* _USE_32BIT_TIME_T */
#define _WFINDDATA_T_DEFINED
#endif
* _findclose calls. _findnext also returns -1 if no match could be found,
* and 0 if a match was found. Call _findclose when you are finished.
*/
-#if __MSVCRT_VERSION__ >= 0x0800
/*
intptr_t _findfirst (const char *filespec,struct _finddata_t *fileinfo);
intptr_t _findfirst32 (const char *filespec,struct _finddata32_t *fileinfo);
_findfirst64i32, Not affected by the macro 64-bit 32-bit
_wfindfirst64i32 definition
*/
-#endif
-#if __MSVCRT_VERSION__ < 0x0800
-_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _findfirst (const char*, struct _finddata_t*);
-_CRTIMP int __cdecl __MINGW_NOTHROW _findnext (intptr_t, struct _finddata_t*);
-#endif /* __MSVCRT_VERSION__ < 0x0800 */
+
_CRTIMP int __cdecl __MINGW_NOTHROW _findclose (intptr_t);
-#if __MSVCRT_VERSION__ >= 0x0800
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _findfirst32 (const char*, struct _finddata32_t*);
_CRTIMP int __cdecl __MINGW_NOTHROW _findnext32 (intptr_t, struct _finddata32_t*);
-#endif /* __MSVCRT_VERSION__ >= 0x0800 */
_CRTIMP int __cdecl __MINGW_NOTHROW _chdir (const char*);
_CRTIMP char* __cdecl __MINGW_NOTHROW _getcwd (char*, int);
_CRTIMP int __cdecl __MINGW_NOTHROW _rmdir (const char*);
_CRTIMP int __cdecl __MINGW_NOTHROW _chmod (const char*, int);
_CRTIMP __int64 __cdecl __MINGW_NOTHROW _filelengthi64(int);
-#if __MSVCRT_VERSION__ < 0x0800
-_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _findfirsti64(const char*, struct _finddatai64_t*);
_CRTIMP int __cdecl __MINGW_NOTHROW _findnexti64(intptr_t, struct _finddatai64_t*);
-#else
-_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _findfirst32i64 (const char*, struct _finddata32i64_t*);
-_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _findfirst64i32 (const char*, struct _finddata64i32_t*);
-_CRTIMP int __cdecl __MINGW_NOTHROW _findnext32i64 (intptr_t, struct _finddata32i64_t*);
-_CRTIMP int __cdecl __MINGW_NOTHROW _findnext64i32 (intptr_t, struct _finddata64i32_t*);
-#endif /* __MSVCRT_VERSION__ < 0x0800 */
_CRTIMP __int64 __cdecl __MINGW_NOTHROW _lseeki64(int, __int64, int);
_CRTIMP __int64 __cdecl __MINGW_NOTHROW _telli64(int);
-/* These require newer versions of msvcrt.dll (6.1 or higher). */
-#if __MSVCRT_VERSION__ >= 0x0601
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _findfirst64(const char*, struct __finddata64_t*);
+_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _findfirst32i64(const char*, struct _finddata32i64_t*);
+_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _findfirst64i32(const char*, struct _finddata64i32_t*);
_CRTIMP int __cdecl __MINGW_NOTHROW _findnext64(intptr_t, struct __finddata64_t*);
-#endif /* __MSVCRT_VERSION__ >= 0x0601 */
-#if __MSVCRT_VERSION__ >= 0x0800
-#ifndef _USE_32BIT_TIME_T
-_CRTALIAS intptr_t __cdecl __MINGW_NOTHROW _findfirst (const char* _v1, struct _finddata_t* _v2) { return(_findfirst64i32 (_v1,(struct _finddata64i32_t*)_v2)); }
-_CRTALIAS int __cdecl __MINGW_NOTHROW _findnext (intptr_t _v1, struct _finddata_t* _v2) { return(_findnext64i32 (_v1,(struct _finddata64i32_t*)_v2)); }
-_CRTALIAS intptr_t __cdecl __MINGW_NOTHROW _findfirsti64 (const char* _v1, struct _finddatai64_t* _v2) { return(_findfirst64 (_v1,(struct __finddata64_t*)_v2)); }
-_CRTALIAS int __cdecl __MINGW_NOTHROW _findnexti64 (intptr_t _v1, struct _finddatai64_t* _v2) { return(_findnext64 (_v1,(struct __finddata64_t*)_v2)); }
-#else
-_CRTALIAS intptr_t __cdecl __MINGW_NOTHROW _findfirst (const char* _v1, struct _finddata_t* _v2) { return(_findfirst32 (_v1,(struct _finddata32_t*)_v2)); }
-_CRTALIAS int __cdecl __MINGW_NOTHROW _findnext (intptr_t _v1, struct _finddata_t* _v2) { return(_findnext32 (_v1,(struct _finddata32_t*)_v2)); }
-_CRTALIAS intptr_t __cdecl __MINGW_NOTHROW _findfirsti64 (const char* _v1, struct _finddatai64_t* _v2) { return(_findfirst32i64 (_v1,(struct _finddata32i64_t*)_v2)); }
-_CRTALIAS int __cdecl __MINGW_NOTHROW _findnexti64 (intptr_t _v1, struct _finddatai64_t* _v2) { return(_findnext32i64 (_v1,(struct _finddata32i64_t*)_v2)); }
-#endif /* !_USE_32BIT_TIME_T */
-#endif /* __MSVCRT_VERSION__ >= 0x0800 */
+_CRTIMP int __cdecl __MINGW_NOTHROW _findnext32i64(intptr_t, struct _finddata32i64_t*);
+_CRTIMP int __cdecl __MINGW_NOTHROW _findnext64i32(intptr_t, struct _finddata64i32_t*);
+
#ifndef __NO_MINGW_LFS
__CRT_INLINE off64_t lseek64 (int, off64_t, int);
__CRT_INLINE off64_t lseek64 (int fd, off64_t offset, int whence)
#ifndef _NO_OLDNAMES
-#ifndef _UWIN
_CRTIMP int __cdecl __MINGW_NOTHROW chdir (const char*);
_CRTIMP char* __cdecl __MINGW_NOTHROW getcwd (char*, int);
_CRTIMP int __cdecl __MINGW_NOTHROW mkdir (const char*);
_CRTIMP char* __cdecl __MINGW_NOTHROW mktemp (char*);
_CRTIMP int __cdecl __MINGW_NOTHROW rmdir (const char*);
_CRTIMP int __cdecl __MINGW_NOTHROW chmod (const char*, int);
-#endif /* _UWIN */
#endif /* Not _NO_OLDNAMES */
_CRTIMP int __cdecl __MINGW_NOTHROW _waccess(const wchar_t*, int);
_CRTIMP int __cdecl __MINGW_NOTHROW _wchmod(const wchar_t*, int);
_CRTIMP int __cdecl __MINGW_NOTHROW _wcreat(const wchar_t*, int);
-#if __MSVCRT_VERSION__ < 0x0800
-_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wfindfirst(const wchar_t*, struct _wfinddata_t*);
-_CRTIMP int __cdecl __MINGW_NOTHROW _wfindnext(intptr_t, struct _wfinddata_t *);
-#else
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wfindfirst32 (const wchar_t*, struct __wfinddata32_t*);
_CRTIMP int __cdecl __MINGW_NOTHROW _wfindnext32 (intptr_t, struct __wfinddata32_t*);
-#endif /* __MSVCRT_VERSION__ < 0x0800 */
_CRTIMP int __cdecl __MINGW_NOTHROW _wunlink(const wchar_t*);
_CRTIMP int __cdecl __MINGW_NOTHROW _wopen(const wchar_t*, int, ...);
_CRTIMP int __cdecl __MINGW_NOTHROW _wsopen(const wchar_t*, int, int, ...);
_CRTIMP wchar_t * __cdecl __MINGW_NOTHROW _wmktemp(wchar_t*);
-#if __MSVCRT_VERSION__ < 0x0800
-_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wfindfirsti64(const wchar_t*, struct _wfinddatai64_t*);
-_CRTIMP int __cdecl __MINGW_NOTHROW _wfindnexti64(intptr_t, struct _wfinddatai64_t*);
-#else
+_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wfindfirst64(const wchar_t*, struct _wfinddata64_t*);
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wfindfirst32i64 (const wchar_t*, struct _wfinddata32i64_t*);
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wfindfirst64i32 (const wchar_t*, struct _wfinddata64i32_t*);
+_CRTIMP int __cdecl __MINGW_NOTHROW _wfindnext64(intptr_t, struct _wfinddata64_t*);
_CRTIMP int __cdecl __MINGW_NOTHROW _wfindnext32i64 (intptr_t, struct _wfinddata32i64_t*);
_CRTIMP int __cdecl __MINGW_NOTHROW _wfindnext64i32 (intptr_t, struct _wfinddata64i32_t*);
-#endif /* __MSVCRT_VERSION__ < 0x0800 */
-#if __MSVCRT_VERSION__ >= 0x0601
-_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wfindfirst64(const wchar_t*, struct __wfinddata64_t*);
-_CRTIMP int __cdecl __MINGW_NOTHROW _wfindnext64(intptr_t, struct __wfinddata64_t*);
-#endif
-#if __MSVCRT_VERSION__ >= 0x0800
-#ifndef _USE_32BIT_TIME_T
-_CRTALIAS intptr_t __cdecl __MINGW_NOTHROW _wfindfirst (const wchar_t* _v1, struct _wfinddata_t* _v2) { return(_wfindfirst64i32 (_v1,(struct _wfinddata64i32_t*)_v2)); }
-_CRTALIAS int __cdecl __MINGW_NOTHROW _wfindnext (intptr_t _v1, struct _wfinddata_t* _v2) { return(_wfindnext64i32 (_v1,(struct _wfinddata64i32_t*)_v2)); }
-_CRTALIAS intptr_t __cdecl __MINGW_NOTHROW _wfindfirsti64 (const wchar_t* _v1, struct _wfinddatai64_t* _v2) { return(_wfindfirst64 (_v1,(struct __wfinddata64_t*)_v2)); }
-_CRTALIAS int __cdecl __MINGW_NOTHROW _wfindnexti64 (intptr_t _v1, struct _wfinddatai64_t* _v2) { return(_wfindnext64 (_v1,(struct __wfinddata64_t*)_v2)); }
-#else
-_CRTALIAS intptr_t __cdecl __MINGW_NOTHROW _wfindfirst (const wchar_t* _v1, struct _wfinddata_t* _v2) { return(_wfindfirst32 (_v1,(struct __wfinddata32_t*)_v2)); }
-_CRTALIAS int __cdecl __MINGW_NOTHROW _wfindnext (intptr_t _v1, struct _wfinddata_t* _v2) { return(_wfindnext32 (_v1,(struct __wfinddata32_t*)_v2)); }
-_CRTALIAS intptr_t __cdecl __MINGW_NOTHROW _wfindfirsti64 (const wchar_t* _v1, struct _wfinddatai64_t* _v2) { return(_wfindfirst32i64 (_v1,(struct _wfinddata32i64_t*)_v2)); }
-_CRTALIAS int __cdecl __MINGW_NOTHROW _wfindnexti64 (intptr_t _v1, struct _wfinddatai64_t* _v2) { return(_wfindnext32i64 (_v1,(struct _wfinddata32i64_t*)_v2)); }
-#endif /* !_USE_32BIT_TIME_T */
-#endif /* __MSVCRT_VERSION__ >= 0x0800 */
#define _WIO_DEFINED
#endif /* _WIO_DEFINED */
* These functions live in libmoldname.a.
*/
-#ifndef _UWIN
_CRTIMP int __cdecl __MINGW_NOTHROW access (const char*, int);
_CRTIMP int __cdecl __MINGW_NOTHROW chsize (int, long );
_CRTIMP int __cdecl __MINGW_NOTHROW close (int);
_CRTIMP int __cdecl __MINGW_NOTHROW umask (int);
_CRTIMP int __cdecl __MINGW_NOTHROW unlink (const char*);
_CRTIMP int __cdecl __MINGW_NOTHROW write (int, const void*, unsigned int);
-#endif /* _UWIN */
#ifdef __USE_MINGW_ACCESS
/* Old versions of MSVCRT access() just ignored X_OK, while the version
#ifndef _IPEXPORT_H
#define _IPEXPORT_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#ifndef _IPHLPAPI_H
#define _IPHLPAPI_H
#pragma GCC system_header
+#include <_mingw.h>
#include <iprtrmib.h>
#include <ipexport.h>
extern "C" {
#endif
-#if (_WIN32_WINNT >= 0x0501)
-#define GAA_FLAG_SKIP_UNICAST 0x00000001
-#define GAA_FLAG_SKIP_ANYCAST 0x00000002
-#define GAA_FLAG_SKIP_MULTICAST 0x00000004
-#define GAA_FLAG_SKIP_DNS_SERVER 0x00000008
-#define GAA_FLAG_INCLUDE_PREFIX 0x00000010
-#define GAA_FLAG_SKIP_FRIENDLY_NAME 0x00000020
-#endif
-
DWORD WINAPI AddIPAddress(IPAddr,IPMask,DWORD,PULONG,PULONG);
DWORD WINAPI CreateIpForwardEntry(PMIB_IPFORWARDROW);
DWORD WINAPI CreateIpNetEntry(PMIB_IPNETROW);
DWORD WINAPI DeleteProxyArpEntry(DWORD,DWORD,DWORD);
DWORD WINAPI EnableRouter(HANDLE*,OVERLAPPED*);
DWORD WINAPI FlushIpNetTable(DWORD);
-#if (_WIN32_WINNT >= 0x0501 && defined(_WINSOCK2_H))
-ULONG WINAPI GetAdaptersAddresses(ULONG,ULONG,PVOID,PIP_ADAPTER_ADDRESSES,PULONG);
-#endif
DWORD WINAPI GetAdapterIndex(LPWSTR,PULONG);
DWORD WINAPI GetAdaptersInfo(PIP_ADAPTER_INFO,PULONG);
DWORD WINAPI GetBestInterface(IPAddr,PDWORD);
DWORD WINAPI GetBestRoute(DWORD,DWORD,PMIB_IPFORWARDROW);
-#if (_WIN32_WINNT >= 0x0501)
-DWORD WINAPI GetExtendedTcpTable (PVOID,PDWORD,BOOL,ULONG,TCP_TABLE_CLASS,ULONG);
-#endif
DWORD WINAPI GetFriendlyIfIndex(DWORD);
DWORD WINAPI GetIcmpStatistics(PMIB_ICMP);
DWORD WINAPI GetIfEntry(PMIB_IFROW);
DWORD WINAPI SetTcpEntry(PMIB_TCPROW);
DWORD WINAPI UnenableRouter(OVERLAPPED*, LPDWORD);
+#if (_WIN32_WINNT >= _WIN32_WINNT_WINXP)
+#define GAA_FLAG_SKIP_UNICAST 0x00000001
+#define GAA_FLAG_SKIP_ANYCAST 0x00000002
+#define GAA_FLAG_SKIP_MULTICAST 0x00000004
+#define GAA_FLAG_SKIP_DNS_SERVER 0x00000008
+#define GAA_FLAG_INCLUDE_PREFIX 0x00000010
+#define GAA_FLAG_SKIP_FRIENDLY_NAME 0x00000020
+#if (defined(_WINSOCK2_H))
+ULONG WINAPI GetAdaptersAddresses(ULONG,ULONG,PVOID,PIP_ADAPTER_ADDRESSES,PULONG);
+#endif
+DWORD WINAPI GetExtendedTcpTable (PVOID,PDWORD,BOOL,ULONG,TCP_TABLE_CLASS,ULONG);
+#endif /* _WIN32_WINNT >= _WIN32_WINNT_WINXP */
+
#ifdef __cplusplus
}
#endif
#ifndef _IPIFCONS_H
#define _IPIFCONS_H
#pragma GCC system_header
+#include <_mingw.h>
/*
* Routing and Remote Access Services
#ifndef _IPINFOID_H
#define _IPINFOID_H
#pragma GCC system_header
+#include <_mingw.h>
/*
* Routing and Remote Access Services
#ifndef _IPRTRMIB_H
#define _IPRTRMIB_H
#pragma GCC system_header
+#include <_mingw.h>
#include <ipifcons.h>
#ifdef __cplusplus
#ifndef _IPTYPES_H
#define _IPTYPES_H
#pragma GCC system_header
+#include <_mingw.h>
#include <sys/types.h>
#ifdef __cplusplus
#define IF_FDDI_ADAPTERTYPE 3
#define IF_PPP_ADAPTERTYPE 4
#define IF_LOOPBACK_ADAPTERTYPE 5
-#if (_WIN32_WINNT >= 0x0501)
-#define IP_ADAPTER_DDNS_ENABLED 0x00000001
-#define IP_ADAPTER_REGISTER_ADAPTER_SUFFIX 0x00000002
-#define IP_ADAPTER_DHCP_ENABLED 0x00000004
-#define IP_ADAPTER_RECEIVE_ONLY 0x00000008
-#define IP_ADAPTER_NO_MULTICAST 0x00000010
-#define IP_ADAPTER_IPV6_OTHER_STATEFUL_CONFIG 0x00000020
-#define IP_ADAPTER_ADDRESS_DNS_ELIGIBLE 0x00000001
-#define IP_ADAPTER_ADDRESS_TRANSIENT 0x00000002
-#endif
typedef struct {
char String[16];
UINT EnableProxy;
UINT EnableDns;
} FIXED_INFO, *PFIXED_INFO;
-#if (_WIN32_WINNT >= 0x0501) && defined(_WINSOCK2_H)
+
+#if (_WIN32_WINNT >= _WIN32_WINNT_WINXP)
+#define IP_ADAPTER_DDNS_ENABLED 0x00000001
+#define IP_ADAPTER_REGISTER_ADAPTER_SUFFIX 0x00000002
+#define IP_ADAPTER_DHCP_ENABLED 0x00000004
+#define IP_ADAPTER_RECEIVE_ONLY 0x00000008
+#define IP_ADAPTER_NO_MULTICAST 0x00000010
+#define IP_ADAPTER_IPV6_OTHER_STATEFUL_CONFIG 0x00000020
+#define IP_ADAPTER_ADDRESS_DNS_ELIGIBLE 0x00000001
+#define IP_ADAPTER_ADDRESS_TRANSIENT 0x00000002
+
+#if defined(_WINSOCK2_H)
typedef enum {
IfOperStatusUp = 1,
IfOperStatusDown,
DWORD ZoneIndices[16];
PIP_ADAPTER_PREFIX FirstPrefix;
} IP_ADAPTER_ADDRESSES,*PIP_ADAPTER_ADDRESSES;
-#endif
+#endif /* _WINSOCK2_H */
+#endif /* _WIN32_WINNT >= _WIN32_WINNT_WINXP */
#ifdef __cplusplus
}
#ifndef _IPXCONST_H
#define _IPXCONST_H
#pragma GCC system_header
+#include <_mingw.h>
/*
* Routing and Remote Access Services
#endif
/*--- Router Management Reference - Router Information Structures - IPX Information Structures */
-#if (_WIN32_WINNT >= 0x0500)
+#if (_WIN32_WINNT >= _WIN32_WINNT_WIN2K)
#define ADMIN_STATE_DISABLED 0x00000001
#define ADMIN_STATE_ENABLED 0x00000002
#define ADMIN_STATE_ENABLED_ONLY_FOR_NETBIOS_STATIC_ROUTING 0x00000003
#define ADMIN_STATE_ENABLED_ONLY_FOR_OPER_STATE_UP 0x00000004
-#endif /* (_WIN32_WINNT >= 0x0500) */
+#endif /* (_WIN32_WINNT >= _WIN32_WINNT_WIN2K) */
#ifdef __cplusplus
}
#ifndef _IPXRTDEF_H
#define _IPXRTDEF_H
#pragma GCC system_header
+#include <_mingw.h>
/*
* Routing and Remote Access Services
#define IPX_IN_TRAFFIC_FILTER_GLOBAL_INFO_TYPE 0x000B
#define IPX_OUT_TRAFFIC_FILTER_INFO_TYPE 0x000C
#define IPX_OUT_TRAFFIC_FILTER_GLOBAL_INFO_TYPE 0x000D
+
/*--- Router Management Reference - Router Information Structures - IPX Information Structures */
-#if (_WIN32_WINNT >= 0x0500)
+#if (_WIN32_WINNT >= _WIN32_WINNT_WINXP)
typedef struct _IPX_IF_INFO {
ULONG AdminState;
ULONG NetbiosAccept;
#ifndef _IPXTFFLT_H
#define _IPXTFFLT_H
#pragma GCC system_header
+#include <_mingw.h>
/*
* Routing and Remote Access Services
#endif
/*--- Router Management Reference - Router Information Structures - IPX Information Structures */
-#if 0
-typedef struct {
- ???
-} IPX_TRAFFIC_FILTER_INFO,*PIPX_TRAFFIC_FILTER_INFO;
-typedef struct {
- ???
-} IPX_TRAFFIC_FILTER_GLOBAL_INFO,*PIPX_TRAFFIC_FILTER_GLOBAL_INFO;
-#endif
+typedef struct _IPX_TRAFFIC_FILTER_INFO {
+ ULONG FilterDefinition;
+ UCHAR DestinationNetwork[4];
+ UCHAR DestinationNetworkMask[4];
+ UCHAR DestinationNode[6];
+ UCHAR DestinationSocket[2];
+ UCHAR SourceNetwork[4];
+ UCHAR SourceNetworkMask[4];
+ UCHAR SourceNode[6];
+ UCHAR SourceSocket[2];
+ ULONG PacketType;
+} IPX_TRAFFIC_FILTER_INFO, *PIPX_TRAFFIC_FILTER_INFO;
+typedef struct _IPX_TRAFFIC_FILTER_GLOBAL_INFO {
+ ULONG FilterAction;
+} IPX_TRAFFIC_FILTER_GLOBAL_INFO, *PIPX_TRAFFIC_FILTER_GLOBAL_INFO;
#ifdef __cplusplus
}
#ifndef _ISGUID_H
#define _ISGUID_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#endif
+
extern const GUID CLSID_InternetShortcut;
extern const GUID IID_IUniformResourceLocator;
+
#ifdef __cplusplus
}
#endif
+
#endif
#ifndef _KS_H
#define _KS_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#ifndef _KSMEDIA_H
#define _KSMEDIA_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
+#ifndef _LARGEINT_H
+#define _LARGEINT_H
+#pragma GCC system_header
+#include <_mingw.h>
/*
* Header for 64 bit integer arithmetics library
*/
-#ifndef _LARGEINT_H
-#define _LARGEINT_H
-#pragma GCC system_header
#include <windows.h>
#ifndef _LIBGEN_H
#define _LIBGEN_H
#pragma GCC system_header
+#include <_mingw.h>
/*
* Functions for splitting pathnames into dirname and basename components.
*/
-/* All the headers include this file. */
-#include <_mingw.h>
-
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _LIMITS_H
#define _LIMITS_H
#pragma GCC system_header
+#include <_mingw.h>
/*
* Functions for manipulating paths and directories (included from io.h)
* use that version instead of this one (maybe safer).
*/
-/* All the headers include this file. */
-#include <_mingw.h>
-
/*
* File system limits
*
* are semantically identical, with a limit of 259 characters for the
* path name, plus one for a terminating NUL, for a total of 260.
*/
-#ifndef __STRICT_ANSI__
# define PATH_MAX 260
-#endif
/*
* Characteristics of the char data type.
#define UCHAR_MAX 255
-/* TODO: Is this safe? I think it might just be testing the preprocessor,
- * not the compiler itself... */
-#if ('\x80' < 0)
+#ifndef _CHAR_UNSIGNED
#define CHAR_MIN SCHAR_MIN
#define CHAR_MAX SCHAR_MAX
#else
/*
* Maximum and minimum values for longs and unsigned longs.
- *
- * TODO: This is not correct for Alphas, which have 64 bit longs.
*/
#define LONG_MAX 2147483647L
#define LONG_MIN (-LONG_MAX-1)
-
#define ULONG_MAX 0xffffffffUL
-#ifndef __STRICT_ANSI__
-/* POSIX wants this. */
#define SSIZE_MAX LONG_MAX
-#endif
-#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) \
- || !defined(__STRICT_ANSI__)
-/* ISO C9x macro names */
#define LLONG_MAX 9223372036854775807LL
#define LLONG_MIN (-LLONG_MAX - 1)
#define ULLONG_MAX (2ULL * LLONG_MAX + 1)
-#endif
-
-/*
- * The GNU C compiler also allows 'long long int'
- */
-#if !defined(__STRICT_ANSI__) && defined(__GNUC__)
#define LONG_LONG_MAX 9223372036854775807LL
#define LONG_LONG_MIN (-LONG_LONG_MAX-1)
#define _I64_MAX LONG_LONG_MAX
#define _UI64_MAX ULONG_LONG_MAX
-#endif /* Not Strict ANSI and GNU C compiler */
-
-
#endif /* not _LIMITS_H */
*/
#define _WIN32_WINNT_NT4 0x0400
#define _WIN32_WINNT_WIN95 0x0400
-#define _WIN32_WINNT_WIN98 0x0401
-#define _WIN32_WINNT_WINME 0x0402
+#define _WIN32_WINNT_WIN98 0x0410
+#define _WIN32_WINNT_WINME 0x0490
#define _WIN32_WINNT_WIN2K 0x0500
#define _WIN32_WINNT_WINXP 0x0501
#define _WIN32_WINNT_WS03 0x0502