소스 검색

exclude vis.h when compiling assembly files

otherwise C declarations are included into preprocessed (.S) asm
source files, producing errors from the assembler.
Khem Raj 9 년 전
부모
커밋
d1b29c2a54
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/internal/vis.h

+ 1 - 1
src/internal/vis.h

@@ -4,7 +4,7 @@
  * override default visibilities to reduce the size and performance costs
  * of position-independent code. */
 
-#ifndef CRT
+#if !defined(CRT) && !defined(__ASSEMBLER__)
 
 /* Conceptually, all symbols should be protected, but some toolchains
  * fail to support copy relocations for protected data, so exclude all