소스 검색

remove libc.h dependency from otherwise-independent multibyte code

Rich Felker 10 년 전
부모
커밋
9d836f444f
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      src/multibyte/internal.h

+ 4 - 2
src/multibyte/internal.h

@@ -7,9 +7,11 @@
 #define bittab __fsmu8
 
 #include <stdint.h>
-#include "libc.h"
 
-extern const uint32_t bittab[] ATTR_LIBC_VISIBILITY;
+#ifdef __PIC__
+__attribute__((__visibility__("hidden")))
+#endif
+extern const uint32_t bittab[];
 
 /* Upper 6 state bits are a negative integer offset to bound-check next byte */
 /*    equivalent to: ( (b-0x80) | (b+offset) ) & ~0x3f      */