Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
6841aca387
1 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. +5
    -1
      caca/caca.h

+ 5
- 1
caca/caca.h Dosyayı Görüntüle

@@ -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



Yükleniyor…
İptal
Kaydet