From ecf22d8044853b539293a3d0bdc3fee85de51f97 Mon Sep 17 00:00:00 2001 From: Chris Sutcliffe Date: Mon, 23 May 2011 01:01:18 +0000 Subject: [PATCH] 2011-05-22 Antoine LECA * include/_mingw.h: Define GCC system_header only if PCC is not defined. * include/stdlib.h: Fix a long-standing typo which prevented correct use of the MB_CUR_MAX macro/variable when DECLSPEC is not supported and is included before . --- winsup/mingw/ChangeLog | 7 +++++++ winsup/mingw/include/_mingw.h | 2 ++ winsup/mingw/include/stdlib.h | 4 ++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index 954486b5a..33dcf9715 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,3 +1,10 @@ +2011-05-22 Antoine LECA + + * include/_mingw.h: Define GCC system_header only if PCC is not defined. + * include/stdlib.h: Fix a long-standing typo which prevented correct use of + the MB_CUR_MAX macro/variable when DECLSPEC is not supported and + is included before . + 2011-05-22 Chris Sutcliffe * include/wchar.h: Include stdio.h to grab definition of FILENAME_MAX. diff --git a/winsup/mingw/include/_mingw.h b/winsup/mingw/include/_mingw.h index 63d6caa22..7648a3106 100644 --- a/winsup/mingw/include/_mingw.h +++ b/winsup/mingw/include/_mingw.h @@ -28,8 +28,10 @@ #define __MINGW32_PATCHLEVEL 0 #if __GNUC__ >= 3 +#ifndef __PCC__ #pragma GCC system_header #endif +#endif /* These are defined by the user (or the compiler) to specify how identifiers are imported from a DLL. diff --git a/winsup/mingw/include/stdlib.h b/winsup/mingw/include/stdlib.h index 9fe23bfd9..55455a276 100644 --- a/winsup/mingw/include/stdlib.h +++ b/winsup/mingw/include/stdlib.h @@ -117,10 +117,10 @@ __MINGW_IMPORT char** __argv_dll; #else /* ! __DECLSPEC_SUPPORTED */ # ifdef __MSVCRT__ - extern int* _imp____mbcur_max; + extern int* _imp____mb_cur_max; # define MB_CUR_MAX (*_imp____mb_cur_max) # else /* not __MSVCRT */ - extern int* _imp____mbcur_max_dll; + extern int* _imp____mb_cur_max_dll; # define MB_CUR_MAX (*_imp____mb_cur_max_dll) # endif /* not __MSVCRT */ #endif /* __DECLSPEC_SUPPORTED */