소스 검색

[Minor] Compilation error with __has_attribuute operator

GCC recommands to add alternative to __has_attribute operator:

https://gcc.gnu.org/onlinedocs/cpp/_005f_005fhas_005fattribute.html
tags/2.5
Thierry Fournier 4 년 전
부모
커밋
1f45648464
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6
    2
      config.h.in

+ 6
- 2
config.h.in 파일 보기

@@ -375,8 +375,12 @@ typedef off_t goffset;
# endif
#elif defined(__GNUC__)
/* GCC based */
# if __has_attribute(__no_sanitize_address__)
# define RSPAMD_NO_SANITIZE __attribute__((no_sanitize_address))
# if defined(__has_attribute)
# if __has_attribute(__no_sanitize_address__)
# define RSPAMD_NO_SANITIZE __attribute__((no_sanitize_address))
# else
# define RSPAMD_NO_SANITIZE
# endif
# else
# define RSPAMD_NO_SANITIZE
# endif

Loading…
취소
저장