Explorar el Código

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

Carlo Bramini. Addresses #48.
tags/v0.99.beta17
Sam Hocevar sam hace 15 años
padre
commit
6841aca387
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. +5
    -1
      caca/caca.h

+ 5
- 1
caca/caca.h Ver fichero

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



Cargando…
Cancelar
Guardar