This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
C99 headers namespace patch
- To: libc-alpha at sources dot redhat dot com
- Subject: C99 headers namespace patch
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Sat, 19 Aug 2000 19:38:03 +0100 (BST)
This patch fixes some of the trivial C99 namespace issues in the glibc
headers previously reported.
--- ctype/ctype.h Thu Apr 6 05:03:25 2000
+++ ctype/ctype.h.new Sat Aug 19 18:26:47 2000
@@ -100,7 +100,7 @@
__exctype (isupper);
__exctype (isxdigit);
-#ifdef __USE_GNU
+#ifdef __USE_ISOC99
__exctype (isblank);
#endif
@@ -159,7 +159,7 @@
# define isupper(c) __isctype((c), _ISupper)
# define isxdigit(c) __isctype((c), _ISxdigit)
-# ifdef __USE_GNU
+# ifdef __USE_ISOC99
# define isblank(c) __isctype((c), _ISblank)
# endif
--- wctype/wctype.h Wed Jul 26 21:13:49 2000
+++ wctype/wctype.h.new Sat Aug 19 18:27:35 2000
@@ -165,7 +165,7 @@
/* Test for any wide character that corresponds to a standard blank
wide character or a locale-specific set of wide characters for
which `iswalnum' is false. */
-# ifdef __USE_GNU
+# ifdef __USE_ISOC99
extern int iswblank (wint_t __wc) __THROW;
# endif
@@ -233,7 +233,7 @@
(__builtin_constant_p (wc) && (wint_t) (wc) <= L'\xff' \
? (int) (__ctype32_b[(wint_t) (wc)] & _ISwxdigit) : iswxdigit (wc)))
-# ifdef __USE_GNU
+# ifdef __USE_ISOC99
# define iswblank(wc) \
(__extension__ \
(__builtin_constant_p (wc) && (wint_t) (wc) <= L'\xff' \
--- math/math.h Sun Oct 31 17:30:28 1999
+++ math/math.h.new Sat Aug 19 18:29:25 2000
@@ -108,7 +108,7 @@
#undef __MATHCALL
-#if defined __USE_MISC || defined __USE_XOPEN || defined __USE_ISOC99
+#if defined __USE_MISC || defined __USE_XOPEN
/* This variable is used by `gamma' and `lgamma'. */
extern int signgam;
#endif
--- math/tgmath.h Wed Aug 2 00:58:36 2000
+++ math/tgmath.h.new Sat Aug 19 18:30:52 2000
@@ -345,7 +345,7 @@
/* Error and gamma functions. */
#define erf(Val) __TGMATH_UNARY_REAL_ONLY (Val, erf)
#define erfc(Val) __TGMATH_UNARY_REAL_ONLY (Val, erfc)
-#define gamma(Val) __TGMATH_UNARY_REAL_ONLY (Val, gamma)
+#define tgamma(Val) __TGMATH_UNARY_REAL_ONLY (Val, tgamma)
#define lgamma(Val) __TGMATH_UNARY_REAL_ONLY (Val, lgamma)
--
Joseph S. Myers
jsm28@cam.ac.uk