From: Wayne Davison Date: Tue, 21 Nov 2006 22:29:33 +0000 (+0000) Subject: Don't define NORETURN for older gcc versions. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/7de7b49f6cfa6182837c493d497f7509b7391ec4 Don't define NORETURN for older gcc versions. --- diff --git a/rsync.h b/rsync.h index 735f8216..d2e328e3 100644 --- a/rsync.h +++ b/rsync.h @@ -664,10 +664,15 @@ struct chmod_mode_struct; #ifndef __GNUC__ #define __attribute__(x) +# if __GNUC__ <= 2 +# define NORETURN +# endif #endif #define UNUSED(x) x __attribute__((__unused__)) +#ifndef NORETURN #define NORETURN __attribute__((__noreturn__)) +#endif #include "proto.h"