2006-09-13 Patrick Mansfield <patmans@us.ibm.com>

* libc/include/math.h: Remove _CONST from _LIB_VERSION, as it is
        supposed to be writable.
        * libm/common/s_lib_ver.c: Ditto.
This commit is contained in:
Jeff Johnston 2006-09-13 22:06:43 +00:00
parent 8552e20ec4
commit ba1bb1b368
3 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2006-09-13 Patrick Mansfield <patmans@us.ibm.com>
* libc/include/math.h: Remove _CONST from _LIB_VERSION, as it is
supposed to be writable.
* libm/common/s_lib_ver.c: Ditto.
2006-09-12 Paul Brook <paul@codesourcery.com>
* libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.

View File

@ -406,7 +406,7 @@ enum __fdlibm_version
#define _LIB_VERSION_TYPE enum __fdlibm_version
#define _LIB_VERSION __fdlib_version
extern __IMPORT _CONST _LIB_VERSION_TYPE _LIB_VERSION;
extern __IMPORT _LIB_VERSION_TYPE _LIB_VERSION;
#define _IEEE_ __fdlibm_ieee
#define _SVID_ __fdlibm_svid

View File

@ -21,15 +21,15 @@
* define and initialize _LIB_VERSION
*/
#ifdef _POSIX_MODE
_CONST _LIB_VERSION_TYPE _LIB_VERSION = _POSIX_;
_LIB_VERSION_TYPE _LIB_VERSION = _POSIX_;
#else
#ifdef _XOPEN_MODE
_CONST _LIB_VERSION_TYPE _LIB_VERSION = _XOPEN_;
_LIB_VERSION_TYPE _LIB_VERSION = _XOPEN_;
#else
#ifdef _SVID3_MODE
_CONST _LIB_VERSION_TYPE _LIB_VERSION = _SVID_;
_LIB_VERSION_TYPE _LIB_VERSION = _SVID_;
#else /* default _IEEE_MODE */
_CONST _LIB_VERSION_TYPE _LIB_VERSION = _IEEE_;
_LIB_VERSION_TYPE _LIB_VERSION = _IEEE_;
#endif
#endif
#endif