summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-02-03 16:12:58 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-02-03 16:12:58 +0000
commit6b295db049fbca765345a9d1e564ba73090a8be1 (patch)
treeb467e3d30e5f736c6b34a80aee31cfee5d52b097
parent08d5fc12a5e69857ee8e2f73cc51d96c09be6abf (diff)
disable hidden_proto/def for __BCC__ generally
-rw-r--r--include/libc-symbols.h2
-rw-r--r--libc/unistd/getopt-susv3.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index a9dd31b38..e1d1b19be 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -388,7 +388,7 @@
# define __hidden_proto_hiddenattr(attrs...)
#endif
-#ifndef STATIC
+#if !defined STATIC && !defined __BCC__
# ifndef __ASSEMBLER__
# define hidden_proto(name, attrs...) __hidden_proto (name, __GI_##name, ##attrs)
# define __hidden_proto(name, internal, attrs...) \
diff --git a/libc/unistd/getopt-susv3.c b/libc/unistd/getopt-susv3.c
index 6f93e4399..0d57dce20 100644
--- a/libc/unistd/getopt-susv3.c
+++ b/libc/unistd/getopt-susv3.c
@@ -34,11 +34,9 @@
#include <string.h>
#include <stdio.h>
-#ifndef __BCC__
libc_hidden_proto(fprintf)
libc_hidden_proto(strchr)
libc_hidden_proto(stderr)
-#endif
#ifdef __UCLIBC_MJN3_ONLY__
#warning TODO: Enable gettext awareness.