Author: fireball Date: Sat Nov 24 19:51:05 2007 New Revision: 30723
URL: http://svn.reactos.org/svn/reactos?rev=30723&view=rev Log: - MS's crt headers define this as 'const'. Fixes an error with MSVC compilation.
Modified: trunk/reactos/include/crt/ctype.h trunk/reactos/include/crt/wctype.h trunk/reactos/lib/sdk/crt/string/ctype.c
Modified: trunk/reactos/include/crt/ctype.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/crt/ctype.h?rev=307... ============================================================================== --- trunk/reactos/include/crt/ctype.h (original) +++ trunk/reactos/include/crt/ctype.h Sat Nov 24 19:51:05 2007 @@ -112,9 +112,9 @@ __MINGW_IMPORT unsigned short _ctype[]; # endif # ifdef __MSVCRT__ - __MINGW_IMPORT unsigned short* _pctype; + __MINGW_IMPORT const unsigned short* _pctype; # else /* CRTDLL */ - __MINGW_IMPORT unsigned short* _pctype_dll; + __MINGW_IMPORT const unsigned short* _pctype_dll; # define _pctype _pctype_dll # endif
Modified: trunk/reactos/include/crt/wctype.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/crt/wctype.h?rev=30... ============================================================================== --- trunk/reactos/include/crt/wctype.h (original) +++ trunk/reactos/include/crt/wctype.h Sat Nov 24 19:51:05 2007 @@ -99,9 +99,9 @@ __MINGW_IMPORT unsigned short _ctype[]; # endif # ifdef __MSVCRT__ - __MINGW_IMPORT unsigned short* _pctype; + __MINGW_IMPORT const unsigned short* _pctype; # else /* CRTDLL */ - __MINGW_IMPORT unsigned short* _pctype_dll; + __MINGW_IMPORT const unsigned short* _pctype_dll; # define _pctype _pctype_dll # endif
Modified: trunk/reactos/lib/sdk/crt/string/ctype.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/string/ctype.c?... ============================================================================== --- trunk/reactos/lib/sdk/crt/string/ctype.c (original) +++ trunk/reactos/lib/sdk/crt/string/ctype.c Sat Nov 24 19:51:05 2007 @@ -266,13 +266,13 @@ 0 /* 0xff */ };
-unsigned short *_pctype = _ctype + 1; -unsigned short *_pwctype = _ctype + 1; - -/* - * @implemented - */ -unsigned short **__p__pctype(void) +const unsigned short *_pctype = _ctype + 1; +const unsigned short *_pwctype = _ctype + 1; + +/* + * @implemented + */ +const unsigned short **__p__pctype(void) { return &_pctype; } @@ -280,7 +280,7 @@ /* * @implemented */ -unsigned short **__p__pwctype(void) +const unsigned short **__p__pwctype(void) { return &_pwctype; }