Browse Source

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 years ago
parent
commit
6841aca387
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      caca/caca.h

+ 5
- 1
caca/caca.h View File

@@ -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…
Cancel
Save