From 7de7b49f6cfa6182837c493d497f7509b7391ec4 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Tue, 21 Nov 2006 22:29:33 +0000 Subject: [PATCH] Don't define NORETURN for older gcc versions. --- rsync.h | 5 +++++ 1 file changed, 5 insertions(+) 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" -- 2.34.1