Don't define NORETURN for older gcc versions.
authorWayne Davison <wayned@samba.org>
Tue, 21 Nov 2006 22:29:33 +0000 (22:29 +0000)
committerWayne Davison <wayned@samba.org>
Tue, 21 Nov 2006 22:29:33 +0000 (22:29 +0000)
rsync.h

diff --git a/rsync.h b/rsync.h
index 735f821..d2e328e 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -664,10 +664,15 @@ struct chmod_mode_struct;
 
 #ifndef __GNUC__
 #define __attribute__(x)
 
 #ifndef __GNUC__
 #define __attribute__(x)
+# if __GNUC__ <= 2
+# define NORETURN
+# endif
 #endif
 
 #define UNUSED(x) x __attribute__((__unused__))
 #endif
 
 #define UNUSED(x) x __attribute__((__unused__))
+#ifndef NORETURN
 #define NORETURN __attribute__((__noreturn__))
 #define NORETURN __attribute__((__noreturn__))
+#endif
 
 #include "proto.h"
 
 
 #include "proto.h"