git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0d0e41
)
Don't define NORETURN for older gcc versions.
author
Wayne Davison
<wayned@samba.org>
Tue, 21 Nov 2006 22:29:33 +0000
(22:29 +0000)
committer
Wayne Davison
<wayned@samba.org>
Tue, 21 Nov 2006 22:29:33 +0000
(22:29 +0000)
rsync.h
patch
|
blob
|
history
diff --git
a/rsync.h
b/rsync.h
index 735f8216bbd1eb83eb2681a5b7d85b4db2c34e4b..d2e328e35d82f96b4ff91c9a5e7180f4f4c48a47 100644
(file)
--- 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"