瀏覽代碼

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



Loading…
取消
儲存