summaryrefslogtreecommitdiff
path: root/tools/apbuild/ctype.h
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-04-30 21:22:39 +0200
committerGravatar waker <wakeroid@gmail.com>2012-04-30 21:28:38 +0200
commit5abbd96a58cc324167e5161d53f0add4dc45aa68 (patch)
tree62e05a3d153523952f12e673efeb4fe9619456c1 /tools/apbuild/ctype.h
parent298f66721bf96aeed42b7712519a95776496d4d6 (diff)
x86_64 static build support
Diffstat (limited to 'tools/apbuild/ctype.h')
-rw-r--r--tools/apbuild/ctype.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/apbuild/ctype.h b/tools/apbuild/ctype.h
index 2db84cc1..ee93b991 100644
--- a/tools/apbuild/ctype.h
+++ b/tools/apbuild/ctype.h
@@ -76,9 +76,15 @@ extern __const unsigned short int *__ctype_b; /* Characteristics. */
extern __const __int32_t *__ctype_tolower; /* Case conversions. */
extern __const __int32_t *__ctype_toupper; /* Case conversions. */
+#if __x86_64__
+__asm__(".symver __ctype_b,__ctype_b@GLIBC_2.2.5");
+__asm__(".symver __ctype_tolower,__ctype_tolower@GLIBC_2.2.5");
+__asm__(".symver __ctype_toupper,__ctype_toupper@GLIBC_2.2.5");
+#else
__asm__(".symver __ctype_b,__ctype_b@GLIBC_2.0");
-__asm__(".symver __ctype_tolower,__ctype_tolower@GLIBC_2.0");
-__asm__(".symver __ctype_toupper,__ctype_toupper@GLIBC_2.0");
+__asm__(".symver __ctype_tolower,__ctype_tolower@GLIBC_2.2.5");
+__asm__(".symver __ctype_toupper,__ctype_toupper@GLIBC_2.2.5");
+#endif
#define __isctype(c, type) \
(__ctype_b[(int) (c)] & (unsigned short int) type)