소스 검색

Only define CACA_ALIAS with gcc > 3 (instead of >= 3). Patch courtesy of

Carlo Bramini. Addresses #48.
tags/v0.99.beta17
Sam Hocevar sam 15 년 전
부모
커밋
6841aca387
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. +5
    -1
      caca/caca.h

+ 5
- 1
caca/caca.h 파일 보기

@@ -644,9 +644,13 @@ typedef struct cucul_buffer cucul_buffer_t;

# if defined __GNUC__ && __GNUC__ >= 3
# define CACA_DEPRECATED __attribute__ ((__deprecated__))
# define CACA_ALIAS(x) __attribute__ ((weak, alias(#x)))
# else
# define CACA_DEPRECATED
# endif

# if defined __GNUC__ && __GNUC__ > 3
# define CACA_ALIAS(x) __attribute__ ((weak, alias(#x)))
# else
# define CACA_ALIAS(x)
# endif



불러오는 중...
취소
저장